Sha256: 49faea11b9da4630b874a1f3cb1f56ea1714efac64837e4ccaaed3482d705dca

Contents?: true

Size: 876 Bytes

Versions: 1

Compression:

Stored size: 876 Bytes

Contents

require 'spec_helper'

describe Riif::IIF do

  context 'mixed document' do
    let(:expected) { File.read('spec/fixtures/mixed.iif') }

    let(:mixed) {
      Riif::IIF.new do
        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
      end
    }

    subject { mixed }

    its(:output) { should eq expected }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riif-0.1.0 spec/riif/iif_spec.rb