aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/hash_ext_test.rb
diff options
context:
space:
mode:
authorRonak Jangir <ronakjangir47@gmail.com>2015-06-11 21:48:33 +0530
committerRonak Jangir <ronakjangir47@gmail.com>2015-07-10 01:58:46 +0530
commit2f28e5b6417fd4e5d6060983b36262737558b613 (patch)
tree45995ea4b862720ba7788649bbd4d6d31a3eb16e /activesupport/test/core_ext/hash_ext_test.rb
parent5ea8efecd08a71ca78688105a39b8a94236443ed (diff)
downloadrails-2f28e5b6417fd4e5d6060983b36262737558b613.tar.gz
rails-2f28e5b6417fd4e5d6060983b36262737558b613.tar.bz2
rails-2f28e5b6417fd4e5d6060983b36262737558b613.zip
Removed use of mocha in active_support
Diffstat (limited to 'activesupport/test/core_ext/hash_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb
index e10bee5e00..5d210c958e 100644
--- a/activesupport/test/core_ext/hash_ext_test.rb
+++ b/activesupport/test/core_ext/hash_ext_test.rb
@@ -961,10 +961,11 @@ class HashExtTest < ActiveSupport::TestCase
assert_raise(RuntimeError) { original.except!(:a) }
end
- def test_except_with_mocha_expectation_on_original
+ def test_except_does_not_delete_values_in_original
original = { :a => 'x', :b => 'y' }
- original.expects(:delete).never
- original.except(:a)
+ assert_not_called(original, :delete) do
+ original.except(:a)
+ end
end
def test_compact