summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-08-12 23:13:54 +0900
committerRandy Morgan <[email protected]>2012-08-12 23:13:54 +0900
commit2d1ca60fc6c4f2bf3e55844725073cca74ab1e9d (patch)
treec12b08e2f23ec88ae8d3fd268eb85d6cddbe2eb7 /test/workbook
parentedc1f5a191d7e2214bb1116f4e6cde442317f662 (diff)
downloadcaxlsx-2d1ca60fc6c4f2bf3e55844725073cca74ab1e9d.tar.gz
caxlsx-2d1ca60fc6c4f2bf3e55844725073cca74ab1e9d.zip
add specs for hyperlink target
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/worksheet/tc_worksheet_hyperlink.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_worksheet_hyperlink.rb b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
index b85be4e4..1d9b4e20 100644
--- a/test/workbook/worksheet/tc_worksheet_hyperlink.rb
+++ b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
@@ -5,7 +5,7 @@ class TestWorksheetHyperlink < Test::Unit::TestCase
p = Axlsx::Package.new
wb = p.workbook
@ws = wb.add_worksheet
- @options = { :location => 'https://github.com/randym/axlsx', :tooltip => 'axlsx', :ref => 'A1', :display => 'AXSLX', :r_id => 'rId1' }
+ @options = { :location => 'https://github.com/randym/axlsx', :tooltip => 'axlsx', :ref => 'A1', :display => 'AXSLX', :r_id => 'rId1', :target => :internal }
@a = @ws.add_hyperlink @options
end
@@ -21,6 +21,10 @@ class TestWorksheetHyperlink < Test::Unit::TestCase
assert_equal(@options[:tooltip], @a.tooltip)
end
+ def test_target
+ assert_equal(@options[:target], @a.instance_values['target'])
+ end
+
def test_display
assert_equal(@options[:display], @a.display)
end