Sha256: 3063a441924bba820de4a3e6c473904825603c30aa3b697fe23b2d6467a49464

Contents?: true

Size: 470 Bytes

Versions: 9

Compression:

Stored size: 470 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="false"]').size
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
caxlsx-2.0.2 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-2.0.1 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-2.0.0 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.6 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.5 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.4 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.3 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.2 test/workbook/worksheet/tc_sheet_calc_pr.rb
axlsx-1.3.1 test/workbook/worksheet/tc_sheet_calc_pr.rb