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