blob: 1facd691faca6d696b96cb243014c4f361959d89 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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
|