Sha256: de9ad2d9b6120f4a917de7b84deb7a88ea6aeb352c142183e51b1e3fc36d5bc4

Contents?: true

Size: 560 Bytes

Versions: 14

Compression:

Stored size: 560 Bytes

Contents

require 'spec_helper'

describe EfoNelfo::V40::VA do

  describe "has aliases for various types" do

    it { EfoNelfo::V40::VA.new(type: 'A').alternative?.must_equal true }
    it { EfoNelfo::V40::VA.new(type: 'E').replacement?.must_equal true }
    it { EfoNelfo::V40::VA.new(type: 'V').alternative_id?.must_equal true }
    it { EfoNelfo::V40::VA.new(type: 'P').package_size?.must_equal true }

  end

  it "#nrf_id returns true if product_type is 4" do
    EfoNelfo::V40::VA.new(product_type: 4, product_number: '1234').nrf_id.must_equal '1234'
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
efo_nelfo-2.0.0 spec/va_spec.rb
efo_nelfo-1.7.0 spec/va_spec.rb
efo_nelfo-1.6.2 spec/va_spec.rb
efo_nelfo-1.6.1 spec/va_spec.rb
efo_nelfo-1.6.0 spec/va_spec.rb
efo_nelfo-1.5.5 spec/va_spec.rb
efo_nelfo-1.5.4 spec/va_spec.rb
efo_nelfo-1.5.3 spec/va_spec.rb
efo_nelfo-1.5.2 spec/va_spec.rb
efo_nelfo-1.5.1 spec/va_spec.rb
efo_nelfo-1.5.0 spec/va_spec.rb
efo_nelfo-1.4.0 spec/va_spec.rb
efo_nelfo-1.3.2 spec/va_spec.rb
efo_nelfo-1.3.1 spec/va_spec.rb