Sha256: 62bd072c13624b87a63df439b12cbd3e5d2e24e2fbea77213dc0e12a55d79afc

Contents?: true

Size: 387 Bytes

Versions: 12

Compression:

Stored size: 387 Bytes

Contents

require 'spec_helper'

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

  let(:terms) {
    Riif::IIF.new do
      terms do
        row do
          name 'terms 1'
          duedays 10
          discper 0.3
          discdays 1
          termstype 0
        end
      end
    end
  }

  subject { terms }

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