summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet/tc_fill.rb
blob: dd61204f7cb1d491e79a77407a8ad570004f5201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'tc_helper.rb'

class TestFill < Test::Unit::TestCase
  def setup
    @item = Axlsx::Fill.new Axlsx::PatternFill.new
  end

  def teardown
  end

  def test_initialiation
    assert(@item.fill_type.is_a?(Axlsx::PatternFill))
    assert_raise(ArgumentError) { Axlsx::Fill.new }
    assert_nothing_raised { Axlsx::Fill.new(Axlsx::GradientFill.new) }
  end
end