diff options
Diffstat (limited to 'activesupport')
-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 |