summaryrefslogtreecommitdiff
path: root/spec/unit/search
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 /spec/unit/search
parentb73683f46c63a3f310404afd7f52e07e14f31285 (diff)
downloadchef-689acdb48bb2910de168d4a9d7add0f646a8d7fa.tar.gz
fix a few more ruby 2.7 specslcg/ruby-2.7-2
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/search')
-rw-r--r--spec/unit/search/query_spec.rb4
1 files changed, 2 insertions, 2 deletions
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