Sha256: ca966d8e5faafc81ccf644ffe49d9229e4d045d146e7f71f9817baa3b8d9ceb1
Contents?: true
Size: 953 Bytes
Versions: 2
Compression:
Stored size: 953 Bytes
Contents
require 'spec_helper' describe Riif::DSL::Trns do let(:expected) { File.read('spec/fixtures/trns.iif') } let(:trns) { Riif::IIF.new do trns do row do trnsid 123 trnstype 'INVOICE' date '8/31/1988' accnt 'Accounts Receivable' name 'Customer' amount 20 docnum 1 clear 'N' toprint 'N' addr1 'Baker' addr2 'Customer' end spl do row do splid '777' trnstype 'INVOICE' date '8/31/1988' accnt 'Income Account' amount '-20' clear 'N' qnty '-2' price 10 invitem 'Sales Item' taxable 'N' end end spl do row do splid '888' end end end end } subject { trns } its(:output) { should eq expected } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
riif-0.2.0 | spec/riif/dsl/trns_spec.rb |
riif-0.1.0 | spec/riif/dsl/trns_spec.rb |