aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lee <davidomundo@gmail.com>2011-05-17 22:56:28 -0700
committerDavid Lee <davidomundo@gmail.com>2011-05-17 22:56:28 -0700
commit96acdfbf2a67437e8192da989caf864ba5db0b3a (patch)
tree75f91ea2dbeeed36c53c0f0af8350cdbabba3043
parentfb3ea8b8cb324d174e801d27dc15315b9358486f (diff)
downloadrails-96acdfbf2a67437e8192da989caf864ba5db0b3a.tar.gz
rails-96acdfbf2a67437e8192da989caf864ba5db0b3a.tar.bz2
rails-96acdfbf2a67437e8192da989caf864ba5db0b3a.zip
Test that HWIA.with_indifferent_access does not return self
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb1
1 files changed, 1 insertions, 0 deletions
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