blob: aa1cb23a27e40ed8692b46a711c6c117cd617f15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
require 'tc_helper.rb'
class TestValAxis < Test::Unit::TestCase
def setup
@axis = Axlsx::ValAxis.new
end
def teardown
end
def test_initialization
assert_equal(@axis.cross_between, :between, "axis crossBetween default incorrect")
end
def test_options
a = Axlsx::ValAxis.new(:cross_between => :midCat)
assert_equal(:midCat, a.cross_between)
end
def test_crossBetween
assert_raise(ArgumentError, "requires valid crossBetween") { @axis.cross_between = :my_eyes }
assert_nothing_raised("accepts valid crossBetween") { @axis.cross_between = :midCat }
end
end
|