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/drawing/tc_str_data.rb | |
| parent | e81036b76e734ab03fac31faafb9732f6b3b2928 (diff) | |
| download | caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip | |
Add RuboCop Minitest
Diffstat (limited to 'test/drawing/tc_str_data.rb')
| -rw-r--r-- | test/drawing/tc_str_data.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/drawing/tc_str_data.rb b/test/drawing/tc_str_data.rb index f964a7b3..a2757d02 100644 --- a/test/drawing/tc_str_data.rb +++ b/test/drawing/tc_str_data.rb @@ -10,7 +10,8 @@ class TestStrData < Test::Unit::TestCase str << '<c:chartSpace xmlns:c="' << Axlsx::XML_NS_C << '">' str << @str_data.to_xml_string doc = Nokogiri::XML(str) - assert_equal(doc.xpath("//c:strLit/c:ptCount[@val=3]").size, 1) - assert_equal(doc.xpath("//c:strLit/c:pt/c:v[text()='1']").size, 1) + + assert_equal(1, doc.xpath("//c:strLit/c:ptCount[@val=3]").size) + assert_equal(1, doc.xpath("//c:strLit/c:pt/c:v[text()='1']").size) end end |
