Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test Hash#diff deprecation, also prevent deprecation message in AS tests

  • Loading branch information...
commit 63ee59d48ad03b70d8e2fa9192b4d5ebbbfe6ad3 1 parent 12d6d3a
@nikitug nikitug authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/test/core_ext/hash_ext_test.rb
View
4 activesupport/test/core_ext/hash_ext_test.rb
@@ -656,7 +656,9 @@ def test_reverse_merge
end
def test_diff
- assert_equal({ :a => 2 }, { :a => 2, :b => 5 }.diff({ :a => 1, :b => 5 }))
+ assert_deprecated do
+ assert_equal({ :a => 2 }, { :a => 2, :b => 5 }.diff({ :a => 1, :b => 5 }))
+ end
end
def test_slice
Please sign in to comment.
Something went wrong with that request. Please try again.