diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-02 23:28:56 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-02 23:32:38 -0300 |
commit | 01f0c3f308542afa8fa262638d94d10420bd2e78 (patch) | |
tree | 04aea74d8c3451b63bb1ec8a0a697cdbf892e681 /activesupport/test | |
parent | b296edd2d89623f97218fd1693b7a188b01e2171 (diff) | |
download | rails-01f0c3f308542afa8fa262638d94d10420bd2e78.tar.gz rails-01f0c3f308542afa8fa262638d94d10420bd2e78.tar.bz2 rails-01f0c3f308542afa8fa262638d94d10420bd2e78.zip |
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.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 6 |
1 files changed, 0 insertions, 6 deletions
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' } |