Sha256: 68fffdd355112f98e391efb49c91515405ae15570ef85d208472396c202183fa

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

require 'spec_helper'

describe QbIif::DSL::Accnt do

  let(:expected) { File.read('spec/fixtures/accnt.iif') }

  let(:accnt) {
    QbIif::IIF.new do
      accnt do
        row do
          name 'Jun Lin'
          accnttype 'AR'
          accnum 47
        end
      end
    end
  }

  subject { accnt }

  its(:output) { should eq expected }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
qb_iif-0.1.2 spec/qb_iif/dsl/accnt_spec.rb
qb_iif-0.1.1 spec/qb_iif/dsl/accnt_spec.rb
qb_iif-0.1.0 spec/qb_iif/dsl/accnt_spec.rb