Sha256: 880b92962a33c50aed77c66323ba3a85bc064388063785c2c7525e260ffa729f
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
# encoding: UTF-8 require 'tc_helper.rb' class TestProtectedRange < Test::Unit::TestCase def setup @p = Axlsx::Package.new @ws = @p.workbook.add_worksheet { |sheet| sheet.add_row [1,2,3,4,5,6,7,8,9] } end def test_initialize_options assert_nothing_raised {Axlsx::ProtectedRange.new(:sqref => 'A1:B1', :name => "only bob")} end def test_range r = @ws.protect_range('A1:B1') assert_equal('A1:B1', r.sqref) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caxlsx-3.2.0 | test/workbook/worksheet/tc_protected_range.rb |