From 0a4165e208db49bd724535cbd4ba6f73fc3d36d7 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 1 May 2019 04:15:12 +0900 Subject: [PATCH] :warning: ambiguous first argument; put parentheses or a space even after `/' operator --- .../active_record/active_record_relation_methods_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kaminari-core/test/models/active_record/active_record_relation_methods_test.rb b/kaminari-core/test/models/active_record/active_record_relation_methods_test.rb index 6b82cb7..8093961 100644 --- a/kaminari-core/test/models/active_record/active_record_relation_methods_test.rb +++ b/kaminari-core/test/models/active_record/active_record_relation_methods_test.rb @@ -103,7 +103,7 @@ if defined? ActiveRecord test 'total_count with max_pages does not add LIMIT' do begin subscriber = ActiveSupport::Notifications.subscribe 'sql.active_record' do |_, __, ___, ____, payload| - assert_not_match /LIMIT/, payload[:sql] + assert_not_match(/LIMIT/, payload[:sql]) end assert_equal 7, User.page.total_count @@ -115,7 +115,7 @@ if defined? ActiveRecord test 'total_count with max_pages adds "LIMIT (max_pages * per_page)" to the count query' do begin subscriber = ActiveSupport::Notifications.subscribe 'sql.active_record' do |_, __, ___, ____, payload| - assert_match /LIMIT/, payload[:sql] + assert_match(/LIMIT/, payload[:sql]) end User.max_pages 10