diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-06-05 14:29:15 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-06-05 14:29:15 -0700 |
commit | 177fa21124e92d109d63ca1daadc0097097e9a6b (patch) | |
tree | 4d9691a521dfa636d9d5bd015955199dd4544240 /spec/unit | |
parent | c6fd63bda42c07dc33684240246e42fb31e0bb86 (diff) | |
download | chef-177fa21124e92d109d63ca1daadc0097097e9a6b.tar.gz |
Fix chefstyle violations.fix-wrong-unit-test
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/mixin/user_context_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/mixin/user_context_spec.rb b/spec/unit/mixin/user_context_spec.rb index 2431c4b881..6c2ea298ae 100644 --- a/spec/unit/mixin/user_context_spec.rb +++ b/spec/unit/mixin/user_context_spec.rb @@ -79,7 +79,7 @@ describe "a class that mixes in user_context" do context "when the block raises an exception" do it "closes the logon session so resources are not leaked" do expect(logon_session).to receive(:close) - expect { instance_with_user_context.with_context("kamilah", nil, "chef4life") { 1/0 } }.to raise_error(ZeroDivisionError) + expect { instance_with_user_context.with_context("kamilah", nil, "chef4life") { 1 / 0 } }.to raise_error(ZeroDivisionError) end end end |