Skip to content

Commit

Permalink
Merge pull request rails#29002 from kamipo/fix_warning_ambiguous_firs…
Browse files Browse the repository at this point in the history
…t_argument

Fix `warning: ambiguous first argument`
  • Loading branch information
matthewd authored May 6, 2017
2 parents e5434b0 + 99b48a5 commit af58740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/quoting_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def quoted_id
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
Expand Down

0 comments on commit af58740

Please sign in to comment.