From 96acdfbf2a67437e8192da989caf864ba5db0b3a Mon Sep 17 00:00:00 2001 From: David Lee Date: Tue, 17 May 2011 22:56:28 -0700 Subject: Test that HWIA.with_indifferent_access does not return self --- activesupport/test/core_ext/hash_ext_test.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activesupport/test/core_ext/hash_ext_test.rb') diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 2f0204731b..0b3f18faec 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -974,6 +974,7 @@ class HashToXmlTest < Test::Unit::TestCase 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 -- cgit v1.2.3