summaryrefslogtreecommitdiffhomepage
path: root/test/tc_package.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-03 19:04:57 +0200
committerGeremia Taglialatela <[email protected]>2023-05-03 19:04:57 +0200
commit8cb015bf7b5b58ecd6d4ee66554601b275410061 (patch)
tree67d63cfd0e35a3e2f68e77db1add44603282c33a /test/tc_package.rb
parent76647606589f1f5d370a1b0add2b1b8e52dc82ea (diff)
downloadcaxlsx-8cb015bf7b5b58ecd6d4ee66554601b275410061.tar.gz
caxlsx-8cb015bf7b5b58ecd6d4ee66554601b275410061.zip
Fix unescaped dot in regexp and convert to include
Diffstat (limited to 'test/tc_package.rb')
-rw-r--r--test/tc_package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tc_package.rb b/test/tc_package.rb
index 92368bc6..d4581792 100644
--- a/test/tc_package.rb
+++ b/test/tc_package.rb
@@ -290,7 +290,7 @@ class TestPackage < Test::Unit::TestCase
@package.to_stream # ensure all cell_serializer paths are hit
p = @package.send(:parts)
- assert_equal(1, p.count { |part| part[:entry] =~ %r{xl/sharedStrings.xml} }, "shared strings table missing")
+ assert_equal(1, p.count { |part| part[:entry].include?('xl/sharedStrings.xml') }, "shared strings table missing")
end
def test_workbook_is_a_workbook