Sha256: 7d7db2cd29a38424fdce70fd702ba442aa51f943445f3cf35a7a8c45fbc93d34
Contents?: true
Size: 698 Bytes
Versions: 7
Compression:
Stored size: 698 Bytes
Contents
require 'test/unit' require 'axlsx.rb' class TestBorder < Test::Unit::TestCase def setup @bpr = Axlsx::Border.new end def teardown end def test_initialiation assert_equal(@bpr.color, nil) assert_equal(@bpr.style, nil) assert_equal(@bpr.name, nil) end def test_color assert_raise(ArgumentError) { @bpr.color = :red } assert_nothing_raised { @bpr.color = Axlsx::Color.new :rgb=>"FF000000" } end def test_style assert_raise(ArgumentError) { @bpr.style = :red } assert_nothing_raised { @bpr.style = :thin } end def test_name assert_raise(ArgumentError) { @bpr.name = :red } assert_nothing_raised { @bpr.name = :top } end end
Version data entries
7 entries across 7 versions & 1 rubygems