Sha256: e7f5fdb61c899256682188e1929df74f5b9fbad0d9c03db1fa924adf9fd50671
Contents?: true
Size: 338 Bytes
Versions: 4
Compression:
Stored size: 338 Bytes
Contents
require 'tempfile' module ExcelHelper def create_excel(file, spreadsheet) yield if block_given? file.puts spreadsheet.to_s file.close Roo::Excel.new(file.path, packed: nil, file_warning: :ignore) end def test_excel_file file = Tempfile.new('test_xls') yield(file) if block_given? file.unlink end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
excel_templating-0.4.2 | spec/excel_helper.rb |
excel_templating-0.4.1 | spec/excel_helper.rb |
excel_templating-0.4.0 | spec/excel_helper.rb |
excel_templating-0.3.2 | spec/excel_helper.rb |