summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.yardopts5
-rw-r--r--test/workbook/worksheet/tc_sheet_calc_pr.rb18
2 files changed, 21 insertions, 2 deletions
diff --git a/.yardopts b/.yardopts
index d726ddfd..c5790aa6 100644
--- a/.yardopts
+++ b/.yardopts
@@ -4,5 +4,6 @@
--readme README.md
--markup markdown
--markup-provider kramdown
---files CHANGELOG.md, LICENSE
---list-undoc
+-
+CHANGELOG.md
+LICENSE
diff --git a/test/workbook/worksheet/tc_sheet_calc_pr.rb b/test/workbook/worksheet/tc_sheet_calc_pr.rb
new file mode 100644
index 00000000..81761155
--- /dev/null
+++ b/test/workbook/worksheet/tc_sheet_calc_pr.rb
@@ -0,0 +1,18 @@
+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