diff options
Diffstat (limited to 'test/helpers/test_formulas.rb')
| -rw-r--r-- | test/helpers/test_formulas.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/helpers/test_formulas.rb b/test/helpers/test_formulas.rb new file mode 100644 index 0000000..509fba4 --- /dev/null +++ b/test/helpers/test_formulas.rb @@ -0,0 +1,9 @@ +module TestFormulas + def test_empty_sheet_formulas + options = { name: "emptysheets", format: [:openoffice, :excelx] } + with_each_spreadsheet(options) do |oo| + oo.default_sheet = oo.sheets.first + assert_equal [], oo.formulas, "An empty sheet's formulas should be an empty array" + end + end +end |
