Skip to content

Commit

Permalink
Merge pull request redhat-openstack#265 from apenney/fix-tests
Browse files Browse the repository at this point in the history
Further fixes to tests for 14.04.
  • Loading branch information
Morgan Haskel authored and Ashley Penney committed Jun 3, 2014
1 parent a364605 commit af71faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/acceptance/ensure_packages_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
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'
Expand Down
4 changes: 2 additions & 2 deletions spec/acceptance/shuffle_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
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
Expand Down

0 comments on commit af71faa

Please sign in to comment.