summaryrefslogtreecommitdiffhomepage
path: root/test/rels
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-02 20:26:15 +0900
committerRandy Morgan <[email protected]>2012-02-02 20:26:15 +0900
commit710f5eac4d8d7d017c42348180e9ae0a5e8fec3c (patch)
tree4cce6fc0e445705de8e3cad06152a7455c2942bf /test/rels
parentd4a00926a263329befc9526a930b274210a13abf (diff)
downloadcaxlsx-710f5eac4d8d7d017c42348180e9ae0a5e8fec3c.tar.gz
caxlsx-710f5eac4d8d7d017c42348180e9ae0a5e8fec3c.zip
Adding in hyperlinking for images as per issue #22
Diffstat (limited to 'test/rels')
-rw-r--r--test/rels/tc_relationship.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/rels/tc_relationship.rb b/test/rels/tc_relationship.rb
index ff3369df..60ac5021 100644
--- a/test/rels/tc_relationship.rb
+++ b/test/rels/tc_relationship.rb
@@ -13,4 +13,9 @@ class TestRelationships < Test::Unit::TestCase
assert_nothing_raised { Axlsx::Relationship.new Axlsx::WORKSHEET_R, 'target' }
end
+ def test_target_mode
+ assert_raise(ArgumentError) { Axlsx::Relationship.new 'type', 'target', :target_mode => "FISH" }
+ assert_nothing_raised { Axlsx::Relationship.new( Axlsx::WORKSHEET_R, 'target', :target_mode => :External) }
+ end
+
end