summaryrefslogtreecommitdiffhomepage
path: root/test/drawing/tc_axes.rb
blob: 2e9aab9096f62fbcf64368ab4c04a9f648dad068 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

require 'tc_helper'

class TestAxes < Test::Unit::TestCase
  def test_constructor_requires_cat_axis_first
    assert_raise(ArgumentError) { Axlsx::Axes.new(:val_axis => Axlsx::ValAxis, :cat_axis => Axlsx::CatAxis) }
    assert_nothing_raised { Axlsx::Axes.new(:cat_axis => Axlsx::CatAxis, :val_axis => Axlsx::ValAxis) }
  end
end