summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_two_cell_anchor.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_two_cell_anchor.rb
parente81036b76e734ab03fac31faafb9732f6b3b2928 (diff)
downloadcaxlsx-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.rb17
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