aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/hash_ext_test.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-25 10:29:45 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-25 13:15:56 +0900
commit019cc5960d25582966733d2bba54553869e67496 (patch)
tree6424c0ab457e274c25a16ba7c59b03116b13ac02 /activesupport/test/core_ext/hash_ext_test.rb
parent4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9 (diff)
downloadrails-019cc5960d25582966733d2bba54553869e67496.tar.gz
rails-019cc5960d25582966733d2bba54553869e67496.tar.bz2
rails-019cc5960d25582966733d2bba54553869e67496.zip
"Use assert_nil if expecting nil from ...:in `...'. This will fail in minitest 6."
Diffstat (limited to 'activesupport/test/core_ext/hash_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb
index 53ee45f963..edfc23e541 100644
--- a/activesupport/test/core_ext/hash_ext_test.rb
+++ b/activesupport/test/core_ext/hash_ext_test.rb
@@ -537,10 +537,10 @@ class HashExtTest < ActiveSupport::TestCase
get_hash = proc { { a: "foo" }.with_indifferent_access }
hash = get_hash.call
assert_equal "foo", hash.delete(:a)
- assert_equal nil, hash.delete(:a)
+ assert_nil hash.delete(:a)
hash = get_hash.call
assert_equal "foo", hash.delete("a")
- assert_equal nil, hash.delete("a")
+ assert_nil hash.delete("a")
end
def test_indifferent_select