blob: 843994147b3fe95cbc44ad7e19bacb0510b286b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
require 'abstract_unit'
require 'active_support/hash_with_indifferent_access'
class HashWithIndifferentAccessTest < ActiveSupport::TestCase
def test_reverse_merge
hash = HashWithIndifferentAccess.new key: :old_value
hash.reverse_merge! key: :new_value
assert_equal :old_value, hash[:key]
end
end
|