From: Morgan Haskel Date: Wed, 30 Jul 2014 16:03:09 +0000 (-0400) Subject: Fix broken acceptance tests. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=27852f44c0811b6d0bacf5e42f67a7fdc11e9e86;p=puppet-modules%2Fpuppetlabs-apt.git 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. --- diff --git a/spec/acceptance/apt_spec.rb b/spec/acceptance/apt_spec.rb index 13f1d50..e26cf8c 100644 --- a/spec/acceptance/apt_spec.rb +++ b/spec/acceptance/apt_spec.rb @@ -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