From fa803a0c588e10d6273e2effbea20f4363ed4014 Mon Sep 17 00:00:00 2001 From: John McCrae Date: Mon, 27 Jun 2022 15:35:37 -0700 Subject: tuning random ugly tests to use an expect statement Signed-off-by: John McCrae --- spec/integration/recipes/unified_mode_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/integration/recipes/unified_mode_spec.rb b/spec/integration/recipes/unified_mode_spec.rb index fbcc96f151..3b6ed401bb 100644 --- a/spec/integration/recipes/unified_mode_spec.rb +++ b/spec/integration/recipes/unified_mode_spec.rb @@ -566,7 +566,7 @@ describe "Unified Mode" do expect(result.stdout).not_to include("first: baz") expect(result.stdout).not_to include("second: foo") expect(result.stdout).not_to include("second: bar") - result.error! + expect(result.exitstatus).to eq(0) end end @@ -622,7 +622,7 @@ describe "Unified Mode" do expect(result.stdout).not_to include("first: bar") expect(result.stdout).not_to include("second: foo") expect(result.stdout).not_to include("second: baz") - result.error! + expect(result.exitstatus).to eq(0) end end -- cgit v1.2.1