Sha256: 5172e3571e88983cb7a52d2a0dae46abf8145dfcb58486c3b73cb6ea17f03834
Contents?: true
Size: 587 Bytes
Versions: 2
Compression:
Stored size: 587 Bytes
Contents
require 'helper' #some integration style tests :) class TestDocumenter < Test::Unit::TestCase should "get to diff files and join then to one" do data = [['a0','b0'],['a1','b1']] data.to_csv(:file => 'myout.csv', :header => ['a','b']) Converter.convert 'myout.csv', 'test1.pdf' end should "fill form and save as pdf" do doc = OdtFile.new 'test_data/custom_register.odt' data = [{'posts' => '123'}, {'posts' => 'abcd'}] doc.text.fill_table(:name => "posts", :data => data) doc.save 'out.pdf' doc.close end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
documenter-0.0.5 | test/test_documenter.rb |
documenter-0.0.4 | test/test_documenter.rb |