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_two_cell_anchor.rb | |
| parent | e81036b76e734ab03fac31faafb9732f6b3b2928 (diff) | |
| download | caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip | |
Add RuboCop Minitest
Diffstat (limited to 'test/drawing/tc_two_cell_anchor.rb')
| -rw-r--r-- | test/drawing/tc_two_cell_anchor.rb | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/drawing/tc_two_cell_anchor.rb b/test/drawing/tc_two_cell_anchor.rb index f2067c23..55cd9ca6 100644 --- a/test/drawing/tc_two_cell_anchor.rb +++ b/test/drawing/tc_two_cell_anchor.rb @@ -10,10 +10,10 @@ class TestTwoCellAnchor < Test::Unit::TestCase end def test_initialization - assert(@anchor.from.col == 0) - assert(@anchor.from.row == 0) - assert(@anchor.to.col == 5) - assert(@anchor.to.row == 10) + assert_equal(0, @anchor.from.col) + assert_equal(0, @anchor.from.row) + assert_equal(5, @anchor.to.col) + assert_equal(10, @anchor.to.row) end def test_index @@ -26,9 +26,10 @@ class TestTwoCellAnchor < Test::Unit::TestCase # this is actually raised in the graphic frame assert_raise(ArgumentError, 'invalid Chart') { @ws.add_chart Axlsx::TwoCellAnchor } a = @ws.add_chart Axlsx::Chart, :start_at => [15, 35], :end_at => [90, 45] - assert_equal(a.graphic_frame.anchor.from.col, 15) - assert_equal(a.graphic_frame.anchor.from.row, 35) - assert_equal(a.graphic_frame.anchor.to.col, 90) - assert_equal(a.graphic_frame.anchor.to.row, 45) + + assert_equal(15, a.graphic_frame.anchor.from.col) + assert_equal(35, a.graphic_frame.anchor.from.row) + assert_equal(90, a.graphic_frame.anchor.to.col) + assert_equal(45, a.graphic_frame.anchor.to.row) end end |
