Sha256: aeed791ff3521121f663f257290e8d18dabd8b861ffa2d1afe63a61c6719b09d

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

require File.join(Dir.pwd, 'spec', 'spec_helper')

describe 'Experian::DataDictionary B3080' do
  context 'valid lookup' do
    it { expect(Experian::DataDictionary.lookup('B3080', 'Y')).to eq('Yes') }
    it { expect(Experian::DataDictionary.lookup('B3080', '5')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('B3080', ' ')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('B3080', '')).to eq('Unknown') }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('B3080', 'TAA1')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('B3080', 'A')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('B3080', 'R')).to be_nil }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4.5 spec/functional/B/en_B3080_spec.rb