diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 10:29:45 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 13:15:56 +0900 |
commit | 019cc5960d25582966733d2bba54553869e67496 (patch) | |
tree | 6424c0ab457e274c25a16ba7c59b03116b13ac02 /activesupport/test | |
parent | 4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9 (diff) | |
download | rails-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')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 4 | ||||
-rw-r--r-- | activesupport/test/safe_buffer_test.rb | 2 |
2 files changed, 3 insertions, 3 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 diff --git a/activesupport/test/safe_buffer_test.rb b/activesupport/test/safe_buffer_test.rb index 811ed2332e..36c068b91f 100644 --- a/activesupport/test/safe_buffer_test.rb +++ b/activesupport/test/safe_buffer_test.rb @@ -175,6 +175,6 @@ class SafeBufferTest < ActiveSupport::TestCase test "Should not affect frozen objects when accessing characters" do x = "Hello".html_safe - assert_equal nil, x[/a/, 1] + assert_nil x[/a/, 1] end end |