diff options
| author | Weston Ganger <[email protected]> | 2022-10-09 13:50:56 -0700 |
|---|---|---|
| committer | Weston Ganger <[email protected]> | 2022-10-09 13:50:56 -0700 |
| commit | 8694cab86130b9385231a21994b2f13f4c07924e (patch) | |
| tree | c009a6d0c9c8dba710957e9edc711e1f75b51947 /test/tc_axlsx.rb | |
| parent | fd8366970d9cb3f5fb431ba6c40a2a2ac2737615 (diff) | |
| download | caxlsx-8694cab86130b9385231a21994b2f13f4c07924e.tar.gz caxlsx-8694cab86130b9385231a21994b2f13f4c07924e.zip | |
Remove active_support dependency from axlsx_styler
Diffstat (limited to 'test/tc_axlsx.rb')
| -rw-r--r-- | test/tc_axlsx.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb index e58ebafe..3903fc42 100644 --- a/test/tc_axlsx.rb +++ b/test/tc_axlsx.rb @@ -132,4 +132,12 @@ class TestAxlsx < Test::Unit::TestCase nil_subject = InstanceValuesSubject.new(nil_obj: nil) assert_equal({"nil_obj" => nil}, Axlsx.instance_values_for(nil_subject), 'should return nil ivars') end + + def test_hash_deep_merge + h1 = {foo: {bar: true}} + h2 = {foo: {baz: true}} + assert_equal({foo: {baz: true}}, h1.merge(h2)) + assert_equal({foo: {bar: true, baz: true}}, Axlsx.hash_deep_merge(h1, h2)) + end + end |
