summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-10-07 10:16:18 -0700
committerTim Smith <tsmith84@gmail.com>2019-10-07 10:49:00 -0700
commita08f7612caca91c0fc7659472e11edda6cbad5a7 (patch)
treed2b5fd7d3274a81066a83f9d094f942cda523570
parent091e3514411ea0a3150f7a60075fb7669fb9f6c7 (diff)
downloadchef-a08f7612caca91c0fc7659472e11edda6cbad5a7.tar.gz
fixup some bad rspec to greenify master
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/functional/util/powershell/cmdlet_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/util/powershell/cmdlet_spec.rb b/spec/functional/util/powershell/cmdlet_spec.rb
index 4be021a60b..7912d03f63 100644
--- a/spec/functional/util/powershell/cmdlet_spec.rb
+++ b/spec/functional/util/powershell/cmdlet_spec.rb
@@ -88,7 +88,7 @@ describe Chef::Util::Powershell::Cmdlet, :windows_powershell_dsc_only do
it "returns json format data" do
result = cmdlet_alias_requires_switch_or_argument.run({}, {}, "ls")
expect(result.succeeded?).to eq(true)
- expect(lambda { Chef::JSONCompat.parse(result.return_value) }).not_to raise_error
+ expect { Chef::JSONCompat.parse(result.return_value) }.not_to raise_error
end
end
@@ -105,7 +105,7 @@ describe Chef::Util::Powershell::Cmdlet, :windows_powershell_dsc_only do
context "when constructor is given invalid arguments" do
let(:cmd_output_format) { :invalid }
it "throws an exception if an invalid format is passed to the constructor" do
- expect(lambda { simple_cmdlet }).to raise_error(ArgumentError)
+ expect { simple_cmdlet }.to raise_error(ArgumentError)
end
end
end