diff options
author | Matthew Draper <matthew@trebex.net> | 2017-05-07 03:03:52 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-07 03:03:52 +0930 |
commit | af58740b8d943f90a18c3e7ceca9432775cfe192 (patch) | |
tree | 960ce3fb7ad6c90e4953e6d46c3c3d2ebc466c3f | |
parent | e5434b038985906f17b3663766a0588dd8998b17 (diff) | |
parent | 99b48a5aebc0ff159a8102f2782eaee8ab5a32cd (diff) | |
download | rails-af58740b8d943f90a18c3e7ceca9432775cfe192.tar.gz rails-af58740b8d943f90a18c3e7ceca9432775cfe192.tar.bz2 rails-af58740b8d943f90a18c3e7ceca9432775cfe192.zip |
Merge pull request #29002 from kamipo/fix_warning_ambiguous_first_argument
Fix `warning: ambiguous first argument`
-rw-r--r-- | activerecord/test/cases/quoting_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/quoting_test.rb b/activerecord/test/cases/quoting_test.rb index f647526fbc..0819776fbf 100644 --- a/activerecord/test/cases/quoting_test.rb +++ b/activerecord/test/cases/quoting_test.rb @@ -89,11 +89,11 @@ module ActiveRecord class SubQuotedOne < QuotedOne end def test_quote_with_quoted_id - assert_deprecated /defined on \S+::QuotedOne at .*quoting_test\.rb:[0-9]/ do + assert_deprecated(/defined on \S+::QuotedOne at .*quoting_test\.rb:[0-9]/) do assert_equal 1, @quoter.quote(QuotedOne.new) end - assert_deprecated /defined on \S+::SubQuotedOne\(\S+::QuotedOne\) at .*quoting_test\.rb:[0-9]/ do + assert_deprecated(/defined on \S+::SubQuotedOne\(\S+::QuotedOne\) at .*quoting_test\.rb:[0-9]/) do assert_equal 1, @quoter.quote(SubQuotedOne.new) end end |