Sha256: 3b6b96061f25d4320e3ffb1888767ee81de718f5ece2dd083061e2e9aca880e1
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
require 'spec_helper' describe QbIif::IIF do context 'mixed document' do let(:expected) { File.read('spec/fixtures/mixed.iif') } let(:mixed) { QbIif::IIF.new do cust do row do name 'Batman' baddr1 'Amoy' end end bud do row do accnt 'Accounts Receivable' period 'MONTH' amount 'foo' startdate '3/14/12' end row do accnt 'Accounts Payable' period 'MONTH' amount '123' startdate '3/15/12' end end trns do row do trnsid 'foo' end spl do row do splid 'joker' end end spl do row do splid 'foobar' end end end cust do row do name 'Joker' baddr1 'Amoy' end end end } subject { mixed } its(:output) { should eq expected } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
qb_iif-0.1.2 | spec/qb_iif/iif_spec.rb |
qb_iif-0.1.1 | spec/qb_iif/iif_spec.rb |
qb_iif-0.1.0 | spec/qb_iif/iif_spec.rb |