summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_scatter_chart.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-04-13 13:13:34 +0200
committerGeremia Taglialatela <[email protected]>2023-05-03 16:05:17 +0200
commit350f7ae9a04f3d39c099cc54f7c04bf31f385d96 (patch)
treee84af2a70d3b18a0b94c784338faf48215c9c8a8 /test/drawing/tc_scatter_chart.rb
parente81036b76e734ab03fac31faafb9732f6b3b2928 (diff)
downloadcaxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz
caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip
Add RuboCop Minitest
Diffstat (limited to 'test/drawing/tc_scatter_chart.rb')
-rw-r--r--test/drawing/tc_scatter_chart.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/drawing/tc_scatter_chart.rb b/test/drawing/tc_scatter_chart.rb
index 42d4a773..6e174567 100644
--- a/test/drawing/tc_scatter_chart.rb
+++ b/test/drawing/tc_scatter_chart.rb
@@ -23,12 +23,13 @@ class TestScatterChart < Test::Unit::TestCase
def test_scatter_style
@chart.scatterStyle = :marker
- assert(@chart.scatterStyle == :marker)
+
+ assert_equal(:marker, @chart.scatterStyle)
assert_raise(ArgumentError) { @chart.scatterStyle = :buckshot }
end
def test_initialization
- assert_equal(@chart.scatterStyle, :lineMarker, "scatterStyle defualt incorrect")
+ assert_equal(:lineMarker, @chart.scatterStyle, "scatterStyle defualt incorrect")
assert_equal(@chart.series_type, Axlsx::ScatterSeries, "series type incorrect")
assert(@chart.xValAxis.is_a?(Axlsx::ValAxis), "independant value axis not created")
assert(@chart.yValAxis.is_a?(Axlsx::ValAxis), "dependant value axis not created")
@@ -42,6 +43,7 @@ class TestScatterChart < Test::Unit::TestCase
errors.push error
puts error.message
end
- assert(errors.empty?, "error free validation")
+
+ assert_empty(errors, "error free validation")
end
end