Sha256: 6e86f81ed2065471c0282c90a327b1ca610348b452e4f655779e73c47d679d03

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

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

describe 'Experian::DataDictionary 0113a' do
  context 'valid lookup' do
    it { expect(Experian::DataDictionary.lookup('0113a', 'H')).to eq('Homeowner') }
    it { expect(Experian::DataDictionary.lookup('0113a', '9')).to eq('Extremely Likely') }
    it { expect(Experian::DataDictionary.lookup('0113a', '8')).to eq('Highly Likely') }
    it { expect(Experian::DataDictionary.lookup('0113a', '7')).to eq('Likely') }
    it { expect(Experian::DataDictionary.lookup('0113a', 'R')).to eq('Renter') }
    it { expect(Experian::DataDictionary.lookup('0113a', 'T')).to eq('Probable Renter') }
    it { expect(Experian::DataDictionary.lookup('0113a', 'U')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('0113a', ' ')).to eq('Unknown') }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('0113a', 'F')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0113a', 'HE')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0113a', 'GG')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0113a', 'DOG')).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/0100/en_0113_spec.rb