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/worksheet/tc_cfvo.rb | |
| parent | e81036b76e734ab03fac31faafb9732f6b3b2928 (diff) | |
| download | caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip | |
Add RuboCop Minitest
Diffstat (limited to 'test/workbook/worksheet/tc_cfvo.rb')
| -rw-r--r-- | test/workbook/worksheet/tc_cfvo.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/workbook/worksheet/tc_cfvo.rb b/test/workbook/worksheet/tc_cfvo.rb index 71ba6bbc..de3aa5d8 100644 --- a/test/workbook/worksheet/tc_cfvo.rb +++ b/test/workbook/worksheet/tc_cfvo.rb @@ -7,24 +7,25 @@ class TestCfvo < Test::Unit::TestCase def test_val assert_nothing_raised { @cfvo.val = "abc" } - assert_equal(@cfvo.val, "abc") + assert_equal("abc", @cfvo.val) end def test_type assert_raise(ArgumentError) { @cfvo.type = :invalid_type } assert_nothing_raised { @cfvo.type = :max } - assert_equal(@cfvo.type, :max) + assert_equal(:max, @cfvo.type) end def test_gte assert_raise(ArgumentError) { @cfvo.gte = :bob } - assert_equal(@cfvo.gte, true) + assert(@cfvo.gte) assert_nothing_raised { @cfvo.gte = false } - assert_equal(@cfvo.gte, false) + refute(@cfvo.gte) end def test_to_xml_string doc = Nokogiri::XML.parse(@cfvo.to_xml_string) + assert doc.xpath(".//cfvo[@type='min'][@val=0][@gte=true]") end end |
