blob: 9473c94b720e6451273f725bc815b7525ba78a17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'tc_helper'
class TestSheetCalcPr < Test::Unit::TestCase
def setup
@sheet_calc_pr = Axlsx::SheetCalcPr.new(:full_calc_on_load => false)
end
def test_full_calc_on_load
assert_equal false, @sheet_calc_pr.full_calc_on_load
assert Axlsx::SheetCalcPr.new.full_calc_on_load
end
def test_to_xml_string
doc = Nokogiri::XML(@sheet_calc_pr.to_xml_string)
assert_equal 1, doc.xpath('//sheetCalcPr[@fullCalcOnLoad=0]').size
end
end
|