diff options
author | utilum <oz@utilum.com> | 2018-04-22 18:33:40 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-04-26 08:02:08 +0200 |
commit | 94ceda00b99794d4f8c28e84d237cc1541af12d7 (patch) | |
tree | daf32b6039ce0056950dd22a915fdc71087029b0 /activerecord/test/cases/scoping | |
parent | e4e25cc8dc76f641a304251ba37e1db99713e584 (diff) | |
download | rails-94ceda00b99794d4f8c28e84d237cc1541af12d7.tar.gz rails-94ceda00b99794d4f8c28e84d237cc1541af12d7.tar.bz2 rails-94ceda00b99794d4f8c28e84d237cc1541af12d7.zip |
assert_called
Diffstat (limited to 'activerecord/test/cases/scoping')
-rw-r--r-- | activerecord/test/cases/scoping/named_scoping_test.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/test/cases/scoping/named_scoping_test.rb b/activerecord/test/cases/scoping/named_scoping_test.rb index 6cb252edaf..4214f347fb 100644 --- a/activerecord/test/cases/scoping/named_scoping_test.rb +++ b/activerecord/test/cases/scoping/named_scoping_test.rb @@ -488,8 +488,9 @@ class NamedScopingTest < ActiveRecord::TestCase [:public_method, :protected_method, :private_method].each do |reserved_method| assert Topic.respond_to?(reserved_method, true) - ActiveRecord::Base.logger.expects(:warn) - silence_warnings { Topic.scope(reserved_method, -> {}) } + assert_called(ActiveRecord::Base.logger, :warn) do + silence_warnings { Topic.scope(reserved_method, -> {}) } + end end end |