Sha256: 4ac22683eb3e4775143e611c8a30086149fab6a8d47389aba187efd0dd15826a
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
require 'tc_helper.rb' class TestCellProtection < Test::Unit::TestCase def setup @item = Axlsx::CellProtection.new end def teardown end def test_initialiation assert_equal(@item.hidden, nil) assert_equal(@item.locked, nil) end def test_hidden assert_raise(ArgumentError) { @item.hidden = -1 } assert_nothing_raised { @item.hidden = false } assert_equal(@item.hidden, false ) end def test_locked assert_raise(ArgumentError) { @item.locked = -1 } assert_nothing_raised { @item.locked = false } assert_equal(@item.locked, false ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | test/stylesheet/tc_cell_protection.rb |