]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Fix the spec test for apt::source
authorBranan Purvine-Riley <branan@puppetlabs.com>
Fri, 25 May 2012 22:32:49 +0000 (15:32 -0700)
committerBranan Purvine-Riley <branan@puppetlabs.com>
Fri, 25 May 2012 22:32:49 +0000 (15:32 -0700)
the $location paramater is meant to be a deb location, so it should be
formatted as a URI.

spec/defines/source_spec.rb

index ed9ce5292cb324cc9590a5d4c601e4d49036900c..583c6190d4689454ec5f95162a2363f4f5662037 100644 (file)
@@ -22,7 +22,7 @@ describe 'apt::source', :type => :define do
 
   [{},
    {
-      :location           => 'somewhere',
+      :location           => 'http://example.com',
       :release            => 'precise',
       :repos              => 'security',
       :include_src        => false,
@@ -39,7 +39,7 @@ describe 'apt::source', :type => :define do
     },
     {
       :ensure             => 'absent',
-      :location           => 'somewhere',
+      :location           => 'http://example.com',
       :release            => 'precise',
       :repos              => 'security',
     }