summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-06-27 15:33:47 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-06-27 15:33:47 -0700
commit5686b08060bcaf16d07d383488c4640e9b858ffb (patch)
treee19b8a615720576e6985f404c9be2725ead07048
parentb3a01fb27cd349b5d78d58c339069252ea3c8552 (diff)
downloadchef-5686b08060bcaf16d07d383488c4640e9b858ffb.tar.gz
tuning random ugly tests to use an expect statement
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--spec/integration/recipes/accumulator_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/recipes/accumulator_spec.rb b/spec/integration/recipes/accumulator_spec.rb
index e1d87c4d53..d064155459 100644
--- a/spec/integration/recipes/accumulator_spec.rb
+++ b/spec/integration/recipes/accumulator_spec.rb
@@ -235,7 +235,7 @@ describe "Accumulators" do
EOM
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
- result.error!
+ expect(result.exitstatus).to eq(0)
# runs only a single template resource (in the outer run context, as a delayed resource)
expect(result.stdout.scan(/template\S+ action create/).size).to eql(1)
# hash order is insertion order in ruby >= 1.9, so this next line does test that all calls were in the correct order