diff options
-rw-r--r-- | spec/unit/resource_spec.rb | 4 | ||||
-rw-r--r-- | spec/unit/search/query_spec.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb index 6745dd448d..2f002f144a 100644 --- a/spec/unit/resource_spec.rb +++ b/spec/unit/resource_spec.rb @@ -3,7 +3,7 @@ # Author:: Christopher Walters (<cw@chef.io>) # Author:: Tim Hinderliter (<tim@chef.io>) # Author:: Seth Chisamore (<schisamo@chef.io>) -# Copyright:: Copyright 2008-2018, Chef Software Inc. +# Copyright:: Copyright 2008-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -912,7 +912,7 @@ describe Chef::Resource do it "adds mappings for all platforms" 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 diff --git a/spec/unit/search/query_spec.rb b/spec/unit/search/query_spec.rb index 83f988911c..7dba88de8b 100644 --- a/spec/unit/search/query_spec.rb +++ b/spec/unit/search/query_spec.rb @@ -1,6 +1,6 @@ # # Author:: Adam Jacob (<adam@chef.io>) -# Copyright:: Copyright 2009-2017, Chef Software Inc. +# Copyright:: Copyright 2009-2020, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -195,7 +195,7 @@ describe Chef::Search::Query do it "throws an exception if you pass an incorrect option" do expect { query.search(:node, "platform:rhel", total: 10) } - .to raise_error(ArgumentError, /unknown keyword: total/) + .to raise_error(ArgumentError, /unknown keyword: :+total/) end it "returns the raw rows, start, and total if no block is passed" do |