From 01f0c3f308542afa8fa262638d94d10420bd2e78 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 2 Jul 2013 23:28:56 -0300 Subject: Remove deprecated Hash#diff with no replacement. If you're using it to compare hashes for the purpose of testing, please use MiniTest's assert_equal instead. --- activesupport/test/core_ext/hash_ext_test.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'activesupport/test') diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index c6d7ab618c..0857796036 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -701,12 +701,6 @@ class HashExtTest < ActiveSupport::TestCase assert_equal expected, merged end - def test_diff - assert_deprecated do - assert_equal({ :a => 2 }, { :a => 2, :b => 5 }.diff({ :a => 1, :b => 5 })) - end - end - def test_slice original = { :a => 'x', :b => 'y', :c => 10 } expected = { :a => 'x', :b => 'y' } -- cgit v1.2.3