From: Morgan Haskel Date: Wed, 30 Jul 2014 16:03:09 +0000 (-0400) Subject: Fix broken acceptance tests. X-Git-Tag: 1.6.0~8^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f02f9b8465fbd07a53061deaded55ffb47a6fbd2;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 60def0e..97f00f1 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