summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-03 18:56:24 +0200
committerGeremia Taglialatela <[email protected]>2023-05-03 18:56:24 +0200
commit76647606589f1f5d370a1b0add2b1b8e52dc82ea (patch)
treee7cc041098b4a4fbd6d9e4e20bbd90c21308e95b /test/workbook
parentaaf88bd98054b1823ba0ade4b883b84e41b5e947 (diff)
downloadcaxlsx-76647606589f1f5d370a1b0add2b1b8e52dc82ea.tar.gz
caxlsx-76647606589f1f5d370a1b0add2b1b8e52dc82ea.zip
Introduce RuboCop performance
Also fixes performance offences in non-production code
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/tc_shared_strings_table.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/tc_shared_strings_table.rb b/test/workbook/tc_shared_strings_table.rb
index de748ba4..2f7de9a7 100644
--- a/test/workbook/tc_shared_strings_table.rb
+++ b/test/workbook/tc_shared_strings_table.rb
@@ -54,7 +54,7 @@ class TestSharedStringsTable < Test::Unit::TestCase
assert @p.workbook.shared_strings.unique_cells.key?(nasties)
# test that none of the control characters are in the XML output for shared strings
- assert_no_match(/#{Axlsx::CONTROL_CHARS}/, @p.workbook.shared_strings.to_xml_string)
+ assert_no_match(/#{Axlsx::CONTROL_CHARS}/o, @p.workbook.shared_strings.to_xml_string)
# assert that the shared string was normalized to remove the control characters
assert_not_nil @p.workbook.shared_strings.to_xml_string.index("helloworld")