summaryrefslogtreecommitdiffhomepage
path: root/test/rels
diff options
context:
space:
mode:
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