From f02f9b8465fbd07a53061deaded55ffb47a6fbd2 Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Wed, 30 Jul 2014 12:03:09 -0400 Subject: [PATCH] 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. --- spec/acceptance/apt_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/acceptance/apt_spec.rb b/spec/acceptance/apt_spec.rb index 60def0e154..97f00f1681 100644 --- a/spec/acceptance/apt_spec.rb +++ b/spec/acceptance/apt_spec.rb @@ -15,7 +15,7 @@ class { 'apt': always_apt_update => true } 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 @@ class { 'apt': always_apt_update => false } 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