diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-09 17:00:35 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2016-08-12 04:11:59 +0900 |
commit | 82ba39202c9185af9060b70a8241cb41101364cf (patch) | |
tree | e24e99ae8a408aa412ba66155187cdbe87d849e5 /activerecord | |
parent | 4394e9075189ee6031944491aecd64fb269cdf54 (diff) | |
download | rails-82ba39202c9185af9060b70a8241cb41101364cf.tar.gz rails-82ba39202c9185af9060b70a8241cb41101364cf.tar.bz2 rails-82ba39202c9185af9060b70a8241cb41101364cf.zip |
Fix warning: ambiguous first argument
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/scoping/relation_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/relation_scoping_test.rb b/activerecord/test/cases/scoping/relation_scoping_test.rb index 13007e2e73..a46123f451 100644 --- a/activerecord/test/cases/scoping/relation_scoping_test.rb +++ b/activerecord/test/cases/scoping/relation_scoping_test.rb @@ -246,7 +246,7 @@ class NestedRelationScopingTest < ActiveRecord::TestCase devs = Developer.all sql = devs.to_sql assert_match "(salary = 80000)", sql - assert_match /LIMIT 10|ROWNUM <= 10|FETCH FIRST 10 ROWS ONLY/, sql + assert_match(/LIMIT 10|ROWNUM <= 10|FETCH FIRST 10 ROWS ONLY/, sql) end end end |