Sha256: d2a42869239ce465dbb5eb791059a63d3d0bf5d1b33ba0fcbe19b27bebee3ade
Contents?: true
Size: 821 Bytes
Versions: 1
Compression:
Stored size: 821 Bytes
Contents
$:.unshift("#{File.dirname(__FILE__)}/../lib") require 'test/unit' require 'clieop' class ClieopWriterTest < Test::Unit::TestCase def setup end def teardown end def test_basic_invoice_usage file = Clieop::File.new file.invoice_batch({:description => 'some description', :account_nr => 123, :account_owner => 'me'}) do |batch| batch << { :account_nr => 123456, :account_owner => 'you', :amount => 133.0, :description => "Testing a CLIEOP direct debt transaction\nCharging your bank account" } batch << { :account_nr => 654321, :account_owner => 'somebody else', :amount => 233.0, :description => 'Some description for the other guy' } end clieop_data = file.to_clieop #TODO: more tests assert_kind_of String, clieop_data end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
clieop-0.1.1 | test/clieop_writer_test.rb |