Sha256: d117110d0c00626ac141b365fdc2c7a4ef561090309ffca397e05155eb36c6d4
Contents?: true
Size: 623 Bytes
Versions: 11
Compression:
Stored size: 623 Bytes
Contents
require 'tc_helper.rb' class TestRelationships < Test::Unit::TestCase def setup end def teardown end def test_type assert_raise(ArgumentError) { Axlsx::Relationship.new 'type', 'target' } assert_nothing_raised { Axlsx::Relationship.new Axlsx::WORKSHEET_R, 'target' } assert_nothing_raised { Axlsx::Relationship.new Axlsx::COMMENT_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
Version data entries
11 entries across 11 versions & 1 rubygems