Skip to content

Commit 893bf7e

Browse files
authored
Merge pull request rails#32654 from yahonda/suppress_ambiguous_first_argument_at_default_scoping_test
Suppress `warning: ambiguous first argument`
2 parents 78ff47f + afd6071 commit 893bf7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/scoping/default_scoping_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_unscope_with_limit_in_query
193193

194194
def test_order_to_unscope_reordering
195195
scope = DeveloperOrderedBySalary.order("salary DESC, name ASC").reverse_order.unscope(:order)
196-
assert_not /order/i.match?(scope.to_sql)
196+
assert_no_match(/order/i, scope.to_sql)
197197
end
198198

199199
def test_unscope_reverse_order

0 commit comments

Comments
 (0)