Sha256: 4e56639cbca6718f10f6234f17fb41c39a5c151a64c042a718812abfecb08585

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'spec_helper'

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

  let(:cust) {
    QbIif::IIF.new do
      cust do
        row do
          name 'Jun Lin'
          phone1 '12312323242'
        end
      end
    end
  }

  subject { cust }

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