Fix broken acceptance tests.

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.
This commit is contained in:
Morgan Haskel 2014-07-30 12:03:09 -04:00
parent 256a63b407
commit f02f9b8465

View 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