summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_selection.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/workbook/worksheet/tc_selection.rb
parente81036b76e734ab03fac31faafb9732f6b3b2928 (diff)
downloadcaxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.tar.gz
caxlsx-350f7ae9a04f3d39c099cc54f7c04bf31f385d96.zip
Add RuboCop Minitest
Diffstat (limited to 'test/workbook/worksheet/tc_selection.rb')
-rw-r--r--test/workbook/worksheet/tc_selection.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/workbook/worksheet/tc_selection.rb b/test/workbook/worksheet/tc_selection.rb
index d600aa67..97419a64 100644
--- a/test/workbook/worksheet/tc_selection.rb
+++ b/test/workbook/worksheet/tc_selection.rb
@@ -9,25 +9,25 @@ class TestSelection < Test::Unit::TestCase
def test_active_cell
assert_raise(ArgumentError) { @selection.active_cell = :active_cell }
assert_nothing_raised { @selection.active_cell = "F5" }
- assert_equal(@selection.active_cell, "F5")
+ assert_equal("F5", @selection.active_cell)
end
def test_active_cell_id
assert_raise(ArgumentError) { @selection.active_cell_id = "foo" }
assert_nothing_raised { @selection.active_cell_id = 11 }
- assert_equal(@selection.active_cell_id, 11)
+ assert_equal(11, @selection.active_cell_id)
end
def test_pane
assert_raise(ArgumentError) { @selection.pane = "foo´" }
assert_nothing_raised { @selection.pane = :bottom_right }
- assert_equal(@selection.pane, "bottomRight")
+ assert_equal("bottomRight", @selection.pane)
end
def test_sqref
assert_raise(ArgumentError) { @selection.sqref = :sqref }
assert_nothing_raised { @selection.sqref = "G32" }
- assert_equal(@selection.sqref, "G32")
+ assert_equal("G32", @selection.sqref)
end
def test_to_xml