summaryrefslogtreecommitdiffhomepage
path: root/test/tc_axlsx.rb
diff options
context:
space:
mode:
authorPaul Kmiec <[email protected]>2023-05-04 16:31:08 -0700
committerPaul Kmiec <[email protected]>2023-05-04 18:02:55 -0700
commitfabe8cb2571c8865270247ca78ddc01d493a9ee1 (patch)
tree27fe0b0df8c9bec8f746d92a0d128cad197027b2 /test/tc_axlsx.rb
parentfef93ec8ae2caf8a3f8310dbf8101c103e5905e4 (diff)
downloadcaxlsx-fabe8cb2571c8865270247ca78ddc01d493a9ee1.tar.gz
caxlsx-fabe8cb2571c8865270247ca78ddc01d493a9ee1.zip
Fix tests / code to work with frozen string literals
Diffstat (limited to 'test/tc_axlsx.rb')
-rw-r--r--test/tc_axlsx.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tc_axlsx.rb b/test/tc_axlsx.rb
index d1c47b47..95c77d88 100644
--- a/test/tc_axlsx.rb
+++ b/test/tc_axlsx.rb
@@ -100,7 +100,7 @@ class TestAxlsx < Test::Unit::TestCase
end
def test_sanitize_unfrozen_control_strippped
- needs_sanitize = "legit\x08" # Backspace control char
+ needs_sanitize = +"legit\x08" # Backspace control char
sanitized_str = Axlsx.sanitize(needs_sanitize)
assert_equal('legit', sanitized_str, 'should strip control chars')
@@ -108,7 +108,7 @@ class TestAxlsx < Test::Unit::TestCase
end
def test_sanitize_unfrozen_no_sanitize
- legit_str = 'legit'
+ legit_str = +'legit'
sanitized_str = Axlsx.sanitize(legit_str)
assert_equal(sanitized_str, legit_str, 'should preserve value')