diff --git a/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb b/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb index bf3d7901a..32e098a87 100644 --- a/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb +++ b/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb @@ -1,18 +1,18 @@ test_name "#7728: Don't log whits on resource failure" manifest = %Q{ class foo { exec { "test": command => "false", path => ['/bin', '/usr/bin'] } notify { "before": before => Exec["test"] } notify { "after": require => Exec["test"] } } include foo } apply_manifest_on(agents, manifest) do assert_match(Regexp.new(Regexp.quote('/Stage[main]/Foo/Notify[after]: Dependency Exec[test] has failures: true')), stdout, "the after dependency must be reported") - assert_no_match(Regexp.new(Regexp.quote('Class[Bar]: Dependency Exec[test] has failures: true')), stdout, 'the class should not be mentioned') + assert_no_match(Regexp.new(Regexp.quote('Class[Foo]: Dependency Exec[test] has failures: true')), stdout, 'the class should not be mentioned') assert_no_match(Regexp.new(Regexp.quote('Stage[main]: Dependency Exec[test] has failures: true')), stdout, 'the stage should not be mentioned') end