summaryrefslogtreecommitdiff
path: root/lib/chef_zero/rspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef_zero/rspec.rb')
-rw-r--r--lib/chef_zero/rspec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef_zero/rspec.rb b/lib/chef_zero/rspec.rb
index b6d6dd1..e1fdfcc 100644
--- a/lib/chef_zero/rspec.rb
+++ b/lib/chef_zero/rspec.rb
@@ -219,7 +219,7 @@ module ChefZero
with_object_path("cookbooks/#{name}") do
# If you didn't specify metadata.rb, we generate it for you. If you
# explicitly set it to nil, that means you don't want it at all.
- if data.has_key?("metadata.rb")
+ if data.key?("metadata.rb")
if data["metadata.rb"].nil?
data.delete("metadata.rb")
end
@@ -235,7 +235,7 @@ module ChefZero
with_object_path("cookbook_artifacts/#{name}") do
# If you didn't specify metadata.rb, we generate it for you. If you
# explicitly set it to nil, that means you don't want it at all.
- if data.has_key?("metadata.rb")
+ if data.key?("metadata.rb")
if data["metadata.rb"].nil?
data.delete("metadata.rb")
end