diff options
author | John McCrae <john.mccrae@progress.com> | 2022-06-27 15:35:37 -0700 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2022-06-27 15:35:37 -0700 |
commit | fa803a0c588e10d6273e2effbea20f4363ed4014 (patch) | |
tree | 00befb0de893ed2dd0d4c9184c2de383ac776fa0 | |
parent | 5686b08060bcaf16d07d383488c4640e9b858ffb (diff) | |
download | chef-jfm/windows_2012_adhoc_errors.tar.gz |
tuning random ugly tests to use an expect statementjfm/windows_2012_adhoc_errors
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | spec/integration/recipes/unified_mode_spec.rb | 4 |
1 files 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 |