summaryrefslogtreecommitdiffhomepage
path: root/test/workbook/worksheet/tc_selection.rb
diff options
context:
space:
mode:
authorGeremia Taglialatela <[email protected]>2023-05-22 20:13:13 +0200
committerGeremia Taglialatela <[email protected]>2023-05-22 20:13:13 +0200
commit083c4c6d62011cd88966d608b0c6bb736f300a0c (patch)
treeb5ceb9b3a32c4130d84c3075966b4033bf32a118 /test/workbook/worksheet/tc_selection.rb
parent6752225bbb8a9eec905ec02a98f1a25a309c404a (diff)
downloadcaxlsx-083c4c6d62011cd88966d608b0c6bb736f300a0c.tar.gz
caxlsx-083c4c6d62011cd88966d608b0c6bb736f300a0c.zip
Use Ruby 1.9 hash syntax (non-production code)
Diffstat (limited to 'test/workbook/worksheet/tc_selection.rb')
-rw-r--r--test/workbook/worksheet/tc_selection.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/workbook/worksheet/tc_selection.rb b/test/workbook/worksheet/tc_selection.rb
index d68500a5..d4f34e3d 100644
--- a/test/workbook/worksheet/tc_selection.rb
+++ b/test/workbook/worksheet/tc_selection.rb
@@ -4,7 +4,7 @@ require 'tc_helper'
class TestSelection < Test::Unit::TestCase
def setup
- @options = { :active_cell => 'A2', :active_cell_id => 1, :pane => :top_left, :sqref => 'A2' }
+ @options = { active_cell: 'A2', active_cell_id: 1, pane: :top_left, sqref: 'A2' }
@selection = Axlsx::Selection.new(@options)
end
@@ -34,12 +34,12 @@ class TestSelection < Test::Unit::TestCase
def test_to_xml
p = Axlsx::Package.new
- @ws = p.workbook.add_worksheet :name => "sheetview"
+ @ws = p.workbook.add_worksheet name: "sheetview"
@ws.sheet_view do |vs|
- vs.add_selection(:top_left, { :active_cell => 'B2', :sqref => 'B2' })
- vs.add_selection(:top_right, { :active_cell => 'I10', :sqref => 'I10' })
- vs.add_selection(:bottom_left, { :active_cell => 'E55', :sqref => 'E55' })
- vs.add_selection(:bottom_right, { :active_cell => 'I57', :sqref => 'I57' })
+ vs.add_selection(:top_left, { active_cell: 'B2', sqref: 'B2' })
+ vs.add_selection(:top_right, { active_cell: 'I10', sqref: 'I10' })
+ vs.add_selection(:bottom_left, { active_cell: 'E55', sqref: 'E55' })
+ vs.add_selection(:bottom_right, { active_cell: 'I57', sqref: 'I57' })
end
doc = Nokogiri::XML.parse(@ws.to_xml_string)