summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2020-01-22 14:40:22 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2020-01-22 14:40:22 -0800
commit689acdb48bb2910de168d4a9d7add0f646a8d7fa (patch)
treef07da2bee54662b0d8f5578bd99e9ad535fe0dfc
parentb73683f46c63a3f310404afd7f52e07e14f31285 (diff)
downloadchef-lcg/ruby-2.7-2.tar.gz
fix a few more ruby 2.7 specslcg/ruby-2.7-2
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--spec/unit/resource_spec.rb4
-rw-r--r--spec/unit/search/query_spec.rb4
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