summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMia Henderson <mimato@users.noreply.github.com>2020-01-27 17:15:15 -0500
committerMia Henderson <mimato@users.noreply.github.com>2020-01-27 17:17:10 -0500
commit80eb6112c4baa36ecccbb780791f2ef34d2f8992 (patch)
tree7bd873c6413ac442ab9b2bbed6825b31fcdffa81
parentc22e314ce8e9ad1b6b91125272e4e33c5ce2e35c (diff)
downloadchef-80eb6112c4baa36ecccbb780791f2ef34d2f8992.tar.gz
Fix ChefStyle
Signed-off-by: Mia Henderson <mia@pagerduty.com>
-rw-r--r--lib/chef/search/query.rb2
-rw-r--r--spec/unit/search/query_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/search/query.rb b/lib/chef/search/query.rb
index 4eaff0471c..e1c039b7c5 100644
--- a/lib/chef/search/query.rb
+++ b/lib/chef/search/query.rb
@@ -63,7 +63,7 @@ class Chef
args_h = hashify_args(*args)
if args_h[:fuzz]
- if [:node, 'node'].include?(type)
+ if [:node, "node"].include?(type)
query = fuzzify_node_query(query)
end
# FIXME: can i haz proper ruby-2.x named parameters someday plz?
diff --git a/spec/unit/search/query_spec.rb b/spec/unit/search/query_spec.rb
index ecac444f5e..4fbe599d32 100644
--- a/spec/unit/search/query_spec.rb
+++ b/spec/unit/search/query_spec.rb
@@ -244,7 +244,7 @@ describe Chef::Search::Query do
expect(rest).to receive(:get).with(
"search/node?q=tags:*free.messi*%20OR%20roles:*free.messi*%20OR%20fqdn:*free.messi*%20OR%20addresses:*free.messi*%20OR%20policy_name:*free.messi*%20OR%20policy_group:*free.messi*&start=0&rows=#{default_rows}"
).and_return(response)
- query.search('node', "free.messi", fuzz: true)
+ query.search("node", "free.messi", fuzz: true)
end
it "does not fuzzify node searches when fuzz is not set" do