summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-09-30 10:08:15 +0900
committerRandy Morgan <[email protected]>2012-09-30 10:08:15 +0900
commit446ecff510346fa81cc48ab0062f28c3aa278859 (patch)
treec07ebf47eca7a6cf7f4fe25cdbcbc0270d81d675
parenta8edb2112abace37ae025fb76b7935fe0973cab8 (diff)
downloadcaxlsx-446ecff510346fa81cc48ab0062f28c3aa278859.tar.gz
caxlsx-446ecff510346fa81cc48ab0062f28c3aa278859.zip
Patched .yardopts to remove nodoc option and proprly include CHANGELOG.md and LICENSE
-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