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

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