diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-06 21:23:58 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-06 21:23:58 +0900 |
commit | 99b48a5aebc0ff159a8102f2782eaee8ab5a32cd (patch) | |
tree | 960ce3fb7ad6c90e4953e6d46c3c3d2ebc466c3f /activerecord/test | |
parent | e5434b038985906f17b3663766a0588dd8998b17 (diff) | |
download | rails-99b48a5aebc0ff159a8102f2782eaee8ab5a32cd.tar.gz rails-99b48a5aebc0ff159a8102f2782eaee8ab5a32cd.tar.bz2 rails-99b48a5aebc0ff159a8102f2782eaee8ab5a32cd.zip |
Fix `warning: ambiguous first argument`
```
% ARCONN=sqlite3 be ruby -w -Itest test/cases/quoting_test.rb
test/cases/quoting_test.rb:92: warning: ambiguous first argument; put parentheses or a space even after `/' operator
test/cases/quoting_test.rb:96: warning: ambiguous first argument; put parentheses or a space even after `/' operator
Using sqlite3
Run options: --seed 9495
.....................................
Finished in 0.046403s, 797.3622 runs/s, 1120.6172 assertions/s.
37 runs, 52 assertions, 0 failures, 0 errors, 0 skips
```
Diffstat (limited to 'activerecord/test')
-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 |