]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Fix broken acceptance tests.
authorMorgan Haskel <morgan@puppetlabs.com>
Wed, 30 Jul 2014 16:03:09 +0000 (12:03 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Fri, 8 Aug 2014 13:38:48 +0000 (09:38 -0400)
New fact was added that matched a regex breaking the always_apt_update
tests.  Updated the tests to check for the apt_update exec, not just the
string apt_update.

spec/acceptance/apt_spec.rb

index 13f1d50536c036100fef5d28f75295ff16b3da28..e26cf8c7caf9598f5d64d9a59827b40f209099fc 100644 (file)
@@ -15,7 +15,7 @@ describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
       EOS
 
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to match(/apt_update/)
+        expect(r.stdout).to match(/Exec\[apt_update\]/)
       end
     end
   end
@@ -26,7 +26,7 @@ describe 'apt class', :unless => UNSUPPORTED_PLATFORMS.include?(fact('osfamily')
       EOS
 
       apply_manifest(pp, :catch_failures => true) do |r|
-        expect(r.stdout).to_not match(/apt_update/)
+        expect(r.stdout).to_not match(/Exec\[apt_update\]/)
       end
     end
   end