diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-13 16:31:13 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-03 16:05:36 +0200 |
| commit | 191f8d31c71f43ee2c898bfedec657dd3e00a0f0 (patch) | |
| tree | f7a5cd9db6cc265dda0a247cf6c5b509ebe486af /test | |
| parent | 350f7ae9a04f3d39c099cc54f7c04bf31f385d96 (diff) | |
| download | caxlsx-191f8d31c71f43ee2c898bfedec657dd3e00a0f0.tar.gz caxlsx-191f8d31c71f43ee2c898bfedec657dd3e00a0f0.zip | |
Fix other non-production offenses
- Style/MethodCallWithoutArgsParentheses
- Style/StringLiteralsInInterpolation
Diffstat (limited to 'test')
| -rwxr-xr-x | test/benchmark.rb | 2 | ||||
| -rw-r--r-- | test/content_type/tc_content_type.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/benchmark.rb b/test/benchmark.rb index 7cbffa32..9e651596 100755 --- a/test/benchmark.rb +++ b/test/benchmark.rb @@ -57,7 +57,7 @@ Benchmark.bmbm(30) do |x| end end end - s = p.to_stream() + s = p.to_stream File.binwrite('example_streamed.xlsx', s.read) end diff --git a/test/content_type/tc_content_type.rb b/test/content_type/tc_content_type.rb index b9d36063..7cbaf5d5 100644 --- a/test/content_type/tc_content_type.rb +++ b/test/content_type/tc_content_type.rb @@ -70,14 +70,14 @@ class TestContentType < Test::Unit::TestCase c = ws.add_chart Axlsx::Pie3DChart doc = Nokogiri::XML(@package.send(:content_types).to_xml_string) - assert_equal(7, doc.xpath("//xmlns:Override").size, "expected 7 types got #{doc.css("Types Override").size}") + assert_equal(7, doc.xpath("//xmlns:Override").size, "expected 7 types got #{doc.css('Types Override').size}") assert_equal(doc.xpath(o_path % Axlsx::DRAWING_CT).first["PartName"], "/xl/#{ws.drawing.pn}", "Drawing part name invlid") assert_equal(doc.xpath(o_path % Axlsx::CHART_CT).last["PartName"], "/xl/#{c.pn}", "Chart part name invlid") c = ws.add_chart Axlsx::Pie3DChart doc = Nokogiri::XML(@package.send(:content_types).to_xml_string) - assert_equal(8, doc.xpath("//xmlns:Override").size, "expected 7 types got #{doc.css("Types Override").size}") + assert_equal(8, doc.xpath("//xmlns:Override").size, "expected 7 types got #{doc.css('Types Override').size}") assert_equal(doc.xpath(o_path % Axlsx::CHART_CT).last["PartName"], "/xl/#{c.pn}", "Chart part name invlid") end end |
