Sha256: 305551343261588cb5957fdad271219cfdc546d239306ac8ecaa98407582f8a9

Contents?: true

Size: 370 Bytes

Versions: 3

Compression:

Stored size: 370 Bytes

Contents

require 'spec_helper'

describe QbIif::DSL::Invitem do
  let(:expected) { File.read('spec/fixtures/invitem.iif') }

  let(:invitem) {
    QbIif::IIF.new do
      invitem do
        row do
          name 'invitem 1'
          invitemtype 'INVENTORY'
          dep_type 1
        end
      end
    end
  }

  subject { invitem }

  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/invitem_spec.rb
qb_iif-0.1.1 spec/qb_iif/dsl/invitem_spec.rb
qb_iif-0.1.0 spec/qb_iif/dsl/invitem_spec.rb