Further fixes to tests for 14.04.

This commit is contained in:
Ashley Penney 2014-06-03 14:52:10 -04:00
parent 43df782406
commit 6010e9bd93
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ describe 'ensure_packages function', :unless => UNSUPPORTED_PLATFORMS.include?(f
EOS
apply_manifest(pp, :expect_changes => true) do |r|
expect(r.stdout).to match(/Package\[zsh\]\/ensure: created/)
expect(r.stdout).to match(/Package\[zsh\]\/ensure: (created|ensure changed 'purged' to 'present')/)
end
end
it 'ensures a package already declared'

View file

@ -5,14 +5,14 @@ describe 'shuffle function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('ope
describe 'success' do
it 'shuffles arrays' do
pp = <<-EOS
$a = ["the","public","art","galleries"]
$a = ["1", "2", "3", "4", "5", "6", "7", "8", "the","public","art","galleries"]
# Anagram: Large picture halls, I bet
$o = shuffle($a)
notice(inline_template('shuffle is <%= @o.inspect %>'))
EOS
apply_manifest(pp, :catch_failures => true) do |r|
expect(r.stdout).to_not match(/shuffle is \["the", "public", "art", "galleries"\]/)
expect(r.stdout).to_not match(/shuffle is \["1", "2", "3", "4", "5", "6", "7", "8", "the", "public", "art", "galleries"\]/)
end
end
it 'shuffles strings' do