Sha256: fd6091e4307d2569beea10e9e5908c14b33089e0f1b7b5790975dcd84abf1dcd
Contents?: true
Size: 472 Bytes
Versions: 6
Compression:
Stored size: 472 Bytes
Contents
require 'tc_helper.rb' class TestConditionalFormatting < Test::Unit::TestCase def setup cfvo = Axlsx::Cfvo.new :val => 0, :type => :min end def test_val assert_raise(ArgumentError) { cfvo.val = 0 } assert_nothing_raised { cfvo.val = "abc" } assert_equal(cfvo.val, "abc") end def test_type assert_raise(ArgumentError) { cfvo.type = :invalid_type } assert_nothing_raised { cfvo.type = :max } assert_equal(cfvo.type, :max) end end
Version data entries
6 entries across 6 versions & 1 rubygems