Sha256: f0d8afc3b27976292e613603cce2de84a9d49e1f121a0972416f525b1f48ab7c

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

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

describe 'Experian::DataDictionary g2603' do

  context 'valid lookup' do
    # it { expect( Experian::DataDictionary.lookup('g2603','') ).to eq('') }
    it { expect( Experian::DataDictionary.lookup('g2603','1') ).to eq('Counties in Metro Areas with population 1,000,000 or more') }
    it { expect( Experian::DataDictionary.lookup('g2603','4') ).to eq('Urban population of 20,000 or more, adjacent to a Metro Area.') }
    it { expect( Experian::DataDictionary.lookup('g2603','7') ).to eq('Urban population of 2,500 to 19,999, not adjacent to a Metro Area.') }
    it { expect( Experian::DataDictionary.lookup('g2603','9') ).to eq('Completely rural or less than 2,500 urban population, not adjacent to a Metro Area.') }
    it { expect( Experian::DataDictionary.lookup('g2603','6') ).to eq('Urban population of 2,500 to 19,999, adjacent to a Metro Area.') }

    it { expect( Experian::DataDictionary.lookup('g2603',' ') ).to eq('Unknown') }
  end

  context 'invalid lookup' do
    it { expect( Experian::DataDictionary.lookup('g2603','P') ).to be_nil }
    it { expect( Experian::DataDictionary.lookup('g2603','10') ).to be_nil }
    it { expect( Experian::DataDictionary.lookup('g2603','14') ).to be_nil }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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