Sha256: 64bb87e71b93c71f9393624beb3a70c01ad4c18c68d4f25d3a65c58080f6958e

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

require 'spec_helper'

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

  let(:timeact) {
    Riif::IIF.new do
    timerhdr do
      row do
        ver 8
        rel 0
        companyname 'Import Test Company'
        importedbefore 'N'
        fromtimer 'Y'
        companycreatetime '1208544781'
      end
    end
    timeact do
      row do
        date '06/21/97'
        job 'job 1'
        emp 'Jun'
        item 'item 1'
        duration '13:40'
        proj 'klass 1'
        billingstatus 0
      end
    end
    end
  }

  subject { timeact }

  its(:output) { should eq expected }
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
iif-0.6.1 spec/riif/dsl/timeact_spec.rb
riif-0.6.0 spec/riif/dsl/timeact_spec.rb
riif-0.5.0 spec/riif/dsl/timeact_spec.rb