Sha256: 432494af8de86685665a99c1bf77c55da1ccf421bd406954a747a43c487f3f70

Contents?: true

Size: 368 Bytes

Versions: 12

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

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

  let(:invitem) {
    Riif::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

12 entries across 12 versions & 2 rubygems

Version Path
riif-1.1.0 spec/riif/dsl/invitem_spec.rb
riif-1.0.0 spec/riif/dsl/invitem_spec.rb
riif-0.9.0 spec/riif/dsl/invitem_spec.rb
riif-0.8.0 spec/riif/dsl/invitem_spec.rb
riif-0.7.0 spec/riif/dsl/invitem_spec.rb
iif-0.6.1 spec/riif/dsl/invitem_spec.rb
riif-0.6.0 spec/riif/dsl/invitem_spec.rb
riif-0.5.0 spec/riif/dsl/invitem_spec.rb
riif-0.4.0 spec/riif/dsl/invitem_spec.rb
riif-0.3.0 spec/riif/dsl/invitem_spec.rb
riif-0.2.0 spec/riif/dsl/invitem_spec.rb
riif-0.1.0 spec/riif/dsl/invitem_spec.rb