diff options
author | Neha Pansare <neha.pansare@progress.com> | 2022-04-21 18:13:03 +0530 |
---|---|---|
committer | Neha Pansare <neha.pansare@progress.com> | 2022-04-21 18:13:03 +0530 |
commit | df1cb5c00768f2195f56d5a3a75d178aa8fdeccf (patch) | |
tree | 918cc8862b52e675dcff2da784a0d110efdfb31a | |
parent | 01851479f4a60a27432d8c21a4ac993cf9442f86 (diff) | |
download | chef-neha-p6/chef-16_bundle_update.tar.gz |
Fix resource unit spec for ruby 2.7 version which deprecates interchangability of keyward and positional argumentsneha-p6/chef-16_bundle_update
Signed-off-by: Neha Pansare <neha.pansare@progress.com>
-rw-r--r-- | spec/unit/resource_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index b8c1a031e2..963c3eb658 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -931,14 +931,14 @@ describe Chef::Resource do it "adds mappings for all platforms", ruby: "< 2.7" do expect(Chef.resource_handler_map).to receive(:set).with( - :tape_deck, Chef::Resource::Klz, {} + :tape_deck, Chef::Resource::Klz ) klz.provides :tape_deck end it "adds mappings for all platforms", ruby: ">= 2.7" do expect(Chef.resource_handler_map).to receive(:set).with( - :tape_deck, Chef::Resource::Klz + :tape_deck, Chef::Resource::Klz, {} ) klz.provides :tape_deck end |