Sha256: 68709e3874e2bdec8be1b137726a7fec5c4b325f7b32a3d0725e8a6925e88f88

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caxlsx-3.2.0 test/workbook/worksheet/tc_sheet_calc_pr.rb