diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 10:28:54 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-25 13:15:56 +0900 |
commit | 4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9 (patch) | |
tree | f8e6b9b7462752ff1ccbba4243ad94fae4eda74e /activesupport/test/core_ext/hash_ext_test.rb | |
parent | 85ca8c08c23783ee81a144c325c68f2a606dbf1b (diff) | |
download | rails-4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9.tar.gz rails-4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9.tar.bz2 rails-4ba9e61d99dfe1d65d8aefd66eeec653f965c8d9.zip |
Expectation first
Diffstat (limited to 'activesupport/test/core_ext/hash_ext_test.rb')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 698a67b0b3..53ee45f963 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -536,11 +536,11 @@ class HashExtTest < ActiveSupport::TestCase def test_indifferent_deleting get_hash = proc { { a: "foo" }.with_indifferent_access } hash = get_hash.call - assert_equal hash.delete(:a), "foo" - assert_equal hash.delete(:a), nil + assert_equal "foo", hash.delete(:a) + assert_equal nil, hash.delete(:a) hash = get_hash.call - assert_equal hash.delete("a"), "foo" - assert_equal hash.delete("a"), nil + assert_equal "foo", hash.delete("a") + assert_equal nil, hash.delete("a") end def test_indifferent_select |