From e1a49bb8b5efeb2b8a587ff8d9a841093c240136 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 7 Oct 2019 10:16:18 -0700 Subject: fixup some bad rspec to greenify master Signed-off-by: Lamont Granquist --- spec/functional/util/powershell/cmdlet_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/functional') diff --git a/spec/functional/util/powershell/cmdlet_spec.rb b/spec/functional/util/powershell/cmdlet_spec.rb index 8ec4fa1366..1c8fef2180 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 -- cgit v1.2.1