summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-03 16:09:37 +0200
committerGeremia Taglialatela <[email protected]>2023-05-03 16:09:37 +0200
commit5915a57cd7a7260fb3b359c26eed4ab4d965d810 (patch)
tree9b8b3c09df7beca9f7eb54aa927ac1dbb759d130 /test
parent04d78c1dc4456934a48054ca4470baeef919fa4b (diff)
downloadcaxlsx-5915a57cd7a7260fb3b359c26eed4ab4d965d810.tar.gz
caxlsx-5915a57cd7a7260fb3b359c26eed4ab4d965d810.zip
Fix Style/MapToHash offense (unsafe)
Diffstat (limited to 'test')
-rw-r--r--test/drawing/tc_d_lbls.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/drawing/tc_d_lbls.rb b/test/drawing/tc_d_lbls.rb
index 97011f6d..ef391824 100644
--- a/test/drawing/tc_d_lbls.rb
+++ b/test/drawing/tc_d_lbls.rb
@@ -20,7 +20,7 @@ class TestDLbls < Test::Unit::TestCase
end
def test_initialization_with_optoins
- options_hash = @boolean_attributes.map { |name| [name, true] }.to_h
+ options_hash = @boolean_attributes.to_h { |name| [name, true] }
d_lbls = Axlsx::DLbls.new(Axlsx::Pie3DChart, options_hash.merge({ :d_lbl_pos => :t }))