Sha256: bfcce52a882e7750b220aa030fbb50759a90508ed6b86681e1f4f90f7404c558

Contents?: true

Size: 641 Bytes

Versions: 12

Compression:

Stored size: 641 Bytes

Contents

require 'test/unit'
require 'axlsx.rb'

class TestValAxis < Test::Unit::TestCase
  def setup    
    @axis = Axlsx::ValAxis.new 12345, 54321
  end
  def teardown
  end

  def test_initialization
    assert_equal(@axis.crossBetween, :between, "axis crossBetween default incorrect")
  end

  def test_options
    a = Axlsx::ValAxis.new 2345, 4321, :crossBetween => :midCat
    assert_equal(a.crossBetween, :midCat)
  end

  def test_crossBetween
    assert_raise(ArgumentError, "requires valid crossBetween") { @axis.crossBetween = :my_eyes }
    assert_nothing_raised("accepts valid crossBetween") { @axis.crossBetween = :midCat }
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
axlsx-1.0.18 test/drawing/tc_val_axis.rb
axlsx-1.0.17 test/drawing/tc_val_axis.rb
axlsx-1.0.16 test/drawing/tc_val_axis.rb
axlsx-1.0.15 test/drawing/tc_val_axis.rb
axlsx-1.0.14 test/drawing/tc_val_axis.rb
axlsx-1.0.12 test/drawing/tc_val_axis.rb
axlsx-1.0.11 test/drawing/tc_val_axis.rb
axlsx-1.0.10 test/drawing/tc_val_axis.rb
axlsx-1.0.10a test/drawing/tc_val_axis.rb
axlsx-1.0.9 test/drawing/tc_val_axis.rb
axlsx-1.0.8 test/drawing/tc_val_axis.rb
axlsx-1.0.7 test/drawing/tc_val_axis.rb