Skip to content

Commit af58740

Browse files
authored
Merge pull request rails#29002 from kamipo/fix_warning_ambiguous_first_argument
Fix `warning: ambiguous first argument`
2 parents e5434b0 + 99b48a5 commit af58740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/quoting_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def quoted_id
8989
class SubQuotedOne < QuotedOne
9090
end
9191
def test_quote_with_quoted_id
92-
assert_deprecated /defined on \S+::QuotedOne at .*quoting_test\.rb:[0-9]/ do
92+
assert_deprecated(/defined on \S+::QuotedOne at .*quoting_test\.rb:[0-9]/) do
9393
assert_equal 1, @quoter.quote(QuotedOne.new)
9494
end
9595

96-
assert_deprecated /defined on \S+::SubQuotedOne\(\S+::QuotedOne\) at .*quoting_test\.rb:[0-9]/ do
96+
assert_deprecated(/defined on \S+::SubQuotedOne\(\S+::QuotedOne\) at .*quoting_test\.rb:[0-9]/) do
9797
assert_equal 1, @quoter.quote(SubQuotedOne.new)
9898
end
9999
end

0 commit comments

Comments
 (0)