diff options
Diffstat (limited to 'spec/unit/data_bag_item_spec.rb')
-rw-r--r-- | spec/unit/data_bag_item_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/unit/data_bag_item_spec.rb b/spec/unit/data_bag_item_spec.rb index 9a12804443..61e0a80444 100644 --- a/spec/unit/data_bag_item_spec.rb +++ b/spec/unit/data_bag_item_spec.rb @@ -148,12 +148,7 @@ describe Chef::DataBagItem do end it "implements all the methods of Hash" do - methods = %i{rehash to_hash [] fetch []= store default - default= default_proc index size length - empty? each_value each_key each_pair each keys values - values_at delete delete_if reject! clear - invert update replace merge! merge has_key? has_value? - key? value?} + methods = Hash.public_instance_methods methods.each do |m| expect(data_bag_item).to respond_to(m) end |