Sha256: c4acec57555867fffa6fd7f90ee127d693163afae893c33ba1e06395d0121c5d

Contents?: true

Size: 1.33 KB

Versions: 8

Compression:

Stored size: 1.33 KB

Contents

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

describe 'Experian::DataDictionary 0139' do

  context 'valid lookup' do
    it { expect( Experian::DataDictionary.lookup('0139','1') ).to eq('1 Response') }
    it { expect( Experian::DataDictionary.lookup('0139','2') ).to eq('2 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','3') ).to eq('3 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','4') ).to eq('4 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','5') ).to eq('5 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','6') ).to eq('6 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','7') ).to eq('7 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','8') ).to eq('8 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','9') ).to eq('9 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139','0') ).to eq('0 Responses') }
    it { expect( Experian::DataDictionary.lookup('0139',' ') ).to eq('Unknown') }

  end


  context 'invalid lookup' do
    it { expect( Experian::DataDictionary.lookup('0139','10') ).to eq('Unknown') }
    it { expect( Experian::DataDictionary.lookup('0139','21') ).to eq('Unknown') }
    it { expect( Experian::DataDictionary.lookup('0139','423') ).to eq('Unknown') }
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4.4 spec/functional/0100/en_0139_spec.rb
experian-data-dictionary-1.4.3 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.4.2 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.4.1 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.4 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.3 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.2 spec/functional/en_0139_spec.rb
experian-data-dictionary-1.0 spec/functional/en_0139_spec.rb