]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Further fixes to tests for 14.04.
authorAshley Penney <ashley.penney@puppetlabs.com>
Tue, 3 Jun 2014 18:52:10 +0000 (14:52 -0400)
committerAshley Penney <ashley.penney@puppetlabs.com>
Tue, 3 Jun 2014 18:52:10 +0000 (14:52 -0400)
spec/acceptance/ensure_packages_spec.rb
spec/acceptance/shuffle_spec.rb

index 145bdc5e5de6f292b42183c644065c992131a96e..aa7b14c9f7e59bb9e1d24f88be2232353e4487ee 100755 (executable)
@@ -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'
index 02d1201dd0c40b73cb17ba5041b3278bd71ec057..b840d1f1b143009ed546c5ac56ac99d994f51404 100755 (executable)
@@ -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