Sha256: 2743d33a96f798c4e74206659244b9cf52b658d4a09a5f55e164d89580a68b82

Contents?: true

Size: 462 Bytes

Versions: 12

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'
class Invoice
  attr_accessor :name
  def initialize(n)
    @name = n
  end
end
describe Riif::DSL::Bud do

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

  let(:bud) {
    Riif::IIF.new do
      bud do
        row do
          accnt 'Accounts Receivable'
          period 'MONTH'
          amount 'foo'
          startdate '3/14/12'
        end
      end
    end
  }

  subject { bud }

  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/bud_spec.rb
riif-1.0.0 spec/riif/dsl/bud_spec.rb
riif-0.9.0 spec/riif/dsl/bud_spec.rb
riif-0.8.0 spec/riif/dsl/bud_spec.rb
riif-0.7.0 spec/riif/dsl/bud_spec.rb
iif-0.6.1 spec/riif/dsl/bud_spec.rb
riif-0.6.0 spec/riif/dsl/bud_spec.rb
riif-0.5.0 spec/riif/dsl/bud_spec.rb
riif-0.4.0 spec/riif/dsl/bud_spec.rb
riif-0.3.0 spec/riif/dsl/bud_spec.rb
riif-0.2.0 spec/riif/dsl/bud_spec.rb
riif-0.1.0 spec/riif/dsl/bud_spec.rb