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_line_chart.rb | |
| parent | e81036b76e734ab03fac31faafb9732f6b3b2928 (diff) | |
| download | caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip | |
Add RuboCop Minitest
Diffstat (limited to 'test/drawing/tc_line_chart.rb')
| -rw-r--r-- | test/drawing/tc_line_chart.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/drawing/tc_line_chart.rb b/test/drawing/tc_line_chart.rb index 4a96af44..fe159bbb 100644 --- a/test/drawing/tc_line_chart.rb +++ b/test/drawing/tc_line_chart.rb @@ -11,7 +11,7 @@ class TestLineChart < Test::Unit::TestCase def teardown; end def test_initialization - assert_equal(@chart.grouping, :standard, "grouping defualt incorrect") + assert_equal(:standard, @chart.grouping, "grouping defualt incorrect") assert_equal(@chart.series_type, Axlsx::LineSeries, "series type incorrect") assert(@chart.cat_axis.is_a?(Axlsx::CatAxis), "category axis not created") assert(@chart.val_axis.is_a?(Axlsx::ValAxis), "value access not created") @@ -20,7 +20,7 @@ class TestLineChart < Test::Unit::TestCase def test_grouping assert_raise(ArgumentError, "require valid grouping") { @chart.grouping = :inverted } assert_nothing_raised("allow valid grouping") { @chart.grouping = :stacked } - assert(@chart.grouping == :stacked) + assert_equal(:stacked, @chart.grouping) end def test_to_xml @@ -31,6 +31,7 @@ class TestLineChart < Test::Unit::TestCase errors.push error puts error.message end - assert(errors.empty?, "error free validation") + + assert_empty(errors, "error free validation") end end |
