diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-08-11 15:16:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-11 15:16:32 -0400 |
commit | 530d3f79ea2dbe0e638b512635297dfd37852a53 (patch) | |
tree | e24e99ae8a408aa412ba66155187cdbe87d849e5 | |
parent | 4394e9075189ee6031944491aecd64fb269cdf54 (diff) | |
parent | 82ba39202c9185af9060b70a8241cb41101364cf (diff) | |
download | rails-530d3f79ea2dbe0e638b512635297dfd37852a53.tar.gz rails-530d3f79ea2dbe0e638b512635297dfd37852a53.tar.bz2 rails-530d3f79ea2dbe0e638b512635297dfd37852a53.zip |
Merge pull request #26090 from kamipo/fix_warning_ambiguous_first_argument
Fix warning: ambiguous first argument
-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 |