Permalink
Browse files

Test that HWIA.with_indifferent_access does not return self

  • Loading branch information...
dlee committed May 18, 2011
1 parent fb3ea8b commit 96acdfbf2a67437e8192da989caf864ba5db0b3a
Showing with 1 addition and 0 deletions.
  1. +1 −0 activesupport/test/core_ext/hash_ext_test.rb
@@ -974,6 +974,7 @@ def test_should_nil_if_no_default_value_is_supplied
def test_should_return_dup_for_with_indifferent_access
hash_wia = HashWithIndifferentAccess.new
assert_equal hash_wia, hash_wia.with_indifferent_access
+ assert_not_same hash_wia, hash_wia.with_indifferent_access
end
def test_should_copy_the_default_value_when_converting_to_hash_with_indifferent_access

0 comments on commit 96acdfb

Please sign in to comment.