Sha256: 4648f53160a2f34643bde60d73fe5cfe09612ccb4e76cb767acae6e80b5954d9
Contents?: true
Size: 665 Bytes
Versions: 4
Compression:
Stored size: 665 Bytes
Contents
# -*- coding: utf-8 -*- require 'helper' require 'writeexcel' require 'stringio' class TestWriteFormula < Minitest::Test def setup @workbook = WriteExcel.new(StringIO.new) @worksheet = @workbook.add_worksheet('') end def teardown if @workbook.instance_variable_get(:@filehandle) @workbook.instance_variable_get(:@filehandle).close(true) end if @worksheet.instance_variable_get(:@filehandle) @worksheet.instance_variable_get(:@filehandle).close(true) end end def test_write_formula_does_not_change_formula_string formula = '=PI()' @worksheet.write('A1', formula) assert_equal('=PI()', formula) end end
Version data entries
4 entries across 4 versions & 1 rubygems