summaryrefslogtreecommitdiff
path: root/spec/unit/mixin
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-07-02 14:55:20 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2018-07-02 15:08:43 -0700
commit21189d25a9385aa9ff3368716824b8333475a08b (patch)
treed4316d70ff88b5a43ffff90d04bd789da51cf9d4 /spec/unit/mixin
parentfb6c052ae6d58db2499cf04ef0595d1e06a4c13c (diff)
downloadchef-21189d25a9385aa9ff3368716824b8333475a08b.tar.gz
fix Style/PreferredHashMethods
absolutely hard requirement on the fixes that went into chef-config 2.2.11, so the floor of that gem is bumped up. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/mixin')
-rw-r--r--spec/unit/mixin/shell_out_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb
index 6b0cd659ef..7f6021d911 100644
--- a/spec/unit/mixin/shell_out_spec.rb
+++ b/spec/unit/mixin/shell_out_spec.rb
@@ -97,7 +97,7 @@ describe Chef::Mixin::ShellOut do
},
}).and_return(retobj)
shell_out_obj.send(method, cmd, options)
- expect(options[:environment].has_key?("LC_ALL")).to be false
+ expect(options[:environment].key?("LC_ALL")).to be false
end
end
@@ -140,7 +140,7 @@ describe Chef::Mixin::ShellOut do
},
}).and_return(retobj)
shell_out_obj.send(method, cmd, options)
- expect(options[:env].has_key?("LC_ALL")).to be false
+ expect(options[:env].key?("LC_ALL")).to be false
end
end