Sha256: b4bbeb3551abd4ccf7137879dab0bb8e497e407525d65b4f2c937ec75aff2067

Contents?: true

Size: 570 Bytes

Versions: 3

Compression:

Stored size: 570 Bytes

Contents

require 'test/unit'
require 'axlsx.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' }
  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

3 entries across 3 versions & 1 rubygems

Version Path
axlsx-1.0.18 test/rels/tc_relationship.rb
axlsx-1.0.17 test/rels/tc_relationship.rb
axlsx-1.0.16 test/rels/tc_relationship.rb