diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-04-20 11:00:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-20 11:00:10 +0900 |
commit | 893bf7ee2f8354f2abf468609ab0f166484a9bed (patch) | |
tree | 577b241a30bb0c7038903dbdaf6dff418db7399d | |
parent | 78ff47f3e77925f72d98579da6feb68f36052ad8 (diff) | |
parent | afd60713daeea28b25cd0168e7847f95781a8e6a (diff) | |
download | rails-893bf7ee2f8354f2abf468609ab0f166484a9bed.tar.gz rails-893bf7ee2f8354f2abf468609ab0f166484a9bed.tar.bz2 rails-893bf7ee2f8354f2abf468609ab0f166484a9bed.zip |
Merge pull request #32654 from yahonda/suppress_ambiguous_first_argument_at_default_scoping_test
Suppress `warning: ambiguous first argument`
-rw-r--r-- | activerecord/test/cases/scoping/default_scoping_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/scoping/default_scoping_test.rb b/activerecord/test/cases/scoping/default_scoping_test.rb index 6cda546b08..e3a34aa50d 100644 --- a/activerecord/test/cases/scoping/default_scoping_test.rb +++ b/activerecord/test/cases/scoping/default_scoping_test.rb @@ -193,7 +193,7 @@ class DefaultScopingTest < ActiveRecord::TestCase def test_order_to_unscope_reordering scope = DeveloperOrderedBySalary.order("salary DESC, name ASC").reverse_order.unscope(:order) - assert_not /order/i.match?(scope.to_sql) + assert_no_match(/order/i, scope.to_sql) end def test_unscope_reverse_order |