blob: 9598b0c075bc823a6c8052829f8822efabb56638 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
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
refute @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
|