summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-10-07 10:16:18 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-10-07 10:16:18 -0700
commite1a49bb8b5efeb2b8a587ff8d9a841093c240136 (patch)
tree7f8c5c251073b20619c641fc78868fbb5a556094 /spec/functional
parent63a4af262d777a80c24990368312c2f793eae11c (diff)
downloadchef-e1a49bb8b5efeb2b8a587ff8d9a841093c240136.tar.gz
fixup some bad rspec to greenify master
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/functional')
-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 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