From 8694cab86130b9385231a21994b2f13f4c07924e Mon Sep 17 00:00:00 2001 From: Weston Ganger Date: Sun, 9 Oct 2022 13:50:56 -0700 Subject: Remove active_support dependency from axlsx_styler --- test/tc_axlsx.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/tc_axlsx.rb') 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 -- cgit v1.2.3