diff options
| author | Geremia Taglialatela <[email protected]> | 2023-04-13 13:13:34 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-05-03 16:05:17 +0200 |
| commit | 350f7ae9a04f3d39c099cc54f7c04bf31f385d96 (patch) | |
| tree | e84af2a70d3b18a0b94c784338faf48215c9c8a8 /test/workbook/tc_shared_strings_table.rb | |
| parent | e81036b76e734ab03fac31faafb9732f6b3b2928 (diff) | |
| download | caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip | |
Add RuboCop Minitest
Diffstat (limited to 'test/workbook/tc_shared_strings_table.rb')
| -rw-r--r-- | test/workbook/tc_shared_strings_table.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/workbook/tc_shared_strings_table.rb b/test/workbook/tc_shared_strings_table.rb index 775f6ae7..b8843f04 100644 --- a/test/workbook/tc_shared_strings_table.rb +++ b/test/workbook/tc_shared_strings_table.rb @@ -17,17 +17,20 @@ class TestSharedStringsTable < Test::Unit::TestCase def test_count sst = @p.workbook.shared_strings - assert_equal(sst.count, 7) + + assert_equal(7, sst.count) end def test_unique_count sst = @p.workbook.shared_strings - assert_equal(sst.unique_count, 4) + + assert_equal(4, sst.unique_count) end def test_uses_workbook_xml_space assert_equal(@p.workbook.xml_space, @p.workbook.shared_strings.xml_space) @p.workbook.xml_space = :default + assert_equal(:default, @p.workbook.shared_strings.xml_space) end @@ -39,7 +42,8 @@ class TestSharedStringsTable < Test::Unit::TestCase puts error.message errors << error end - assert_equal(errors.size, 0, "sharedStirngs.xml Invalid" + errors.map(&:message).to_s) + + assert_equal(0, errors.size, "sharedStirngs.xml Invalid" + errors.map(&:message).to_s) end def test_remove_control_characters_in_xml_serialization |
