about summary refs log tree commit diff
path: root/spec/controllers
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:22:01 -0500
committerGitHub <noreply@github.com>2023-02-18 03:22:01 +0100
commit6d42820e5df4a2282af1194a98789b45027aabce (patch)
tree041be6d2804a5840ee04e2ef9429fa5c6a4b40e5 /spec/controllers
parentac59d6f19f00f1503343cd587c4238dc0038127a (diff)
Autofix Rubocop Lint/AmbiguousOperator (#23680)
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/api/v1/suggestions_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/suggestions_controller_spec.rb b/spec/controllers/api/v1/suggestions_controller_spec.rb
index 17f10b04f..7805b6b4f 100644
--- a/spec/controllers/api/v1/suggestions_controller_spec.rb
+++ b/spec/controllers/api/v1/suggestions_controller_spec.rb
@@ -29,7 +29,7 @@ RSpec.describe Api::V1::SuggestionsController, type: :controller do
       json = body_as_json
 
       expect(json.size).to be >= 1
-      expect(json.map { |i| i[:id] }).to include *[bob, jeff].map { |i| i.id.to_s }
+      expect(json.map { |i| i[:id] }).to include(*[bob, jeff].map { |i| i.id.to_s })
     end
   end
 end