Skip to content

Commit 6010e9b

Browse files
author
Ashley Penney
committed
Further fixes to tests for 14.04.
1 parent 43df782 commit 6010e9b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

spec/acceptance/ensure_packages_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
EOS
1212

1313
apply_manifest(pp, :expect_changes => true) do |r|
14-
expect(r.stdout).to match(/Package\[zsh\]\/ensure: created/)
14+
expect(r.stdout).to match(/Package\[zsh\]\/ensure: (created|ensure changed 'purged' to 'present')/)
1515
end
1616
end
1717
it 'ensures a package already declared'

spec/acceptance/shuffle_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
describe 'success' do
66
it 'shuffles arrays' do
77
pp = <<-EOS
8-
$a = ["the","public","art","galleries"]
8+
$a = ["1", "2", "3", "4", "5", "6", "7", "8", "the","public","art","galleries"]
99
# Anagram: Large picture halls, I bet
1010
$o = shuffle($a)
1111
notice(inline_template('shuffle is <%= @o.inspect %>'))
1212
EOS
1313

1414
apply_manifest(pp, :catch_failures => true) do |r|
15-
expect(r.stdout).to_not match(/shuffle is \["the", "public", "art", "galleries"\]/)
15+
expect(r.stdout).to_not match(/shuffle is \["1", "2", "3", "4", "5", "6", "7", "8", "the", "public", "art", "galleries"\]/)
1616
end
1717
end
1818
it 'shuffles strings' do

0 commit comments

Comments
 (0)