Sha256: b5c7b7a5df55a32b83fe98bb29e89a842086060a59ce15e4ca6da7873e34becc

Contents?: true

Size: 464 Bytes

Versions: 16

Compression:

Stored size: 464 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

16 entries across 16 versions & 6 rubygems

Version Path
caxlsx-3.1.1 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.1.0 test/workbook/worksheet/tc_sheet_calc_pr.rb
bonio-axlsx-2.2.3 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.0.4 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.0.3 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.0.2 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.0.1 test/workbook/worksheet/tc_sheet_calc_pr.rb
caxlsx-3.0.0 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-alt-3.0.1 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-alt-3.0.0 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-3.0.0.pre test/workbook/worksheet/tc_sheet_calc_pr.rb
bonio-axlsx-2.2.2 test/workbook/worksheet/tc_sheet_calc_pr.rb
bonio-axlsx-2.2.1 test/workbook/worksheet/tc_sheet_calc_pr.rb
dg-axlsx-2.1.0 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-2.1.0.pre test/workbook/worksheet/tc_sheet_calc_pr.rb
l_axlsx-2.0.1 test/workbook/worksheet/tc_sheet_calc_pr.rb