experian-data-dictionary 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +28 -0
- data/Gemfile +3 -3
- data/Rakefile +7 -13
- data/experian_data_dictionary.gemspec +4 -4
- data/lib/element_numbers/0000/en_0000.rb +3 -3
- data/lib/element_numbers/0100/en_0100.rb +12 -12
- data/lib/element_numbers/0100/en_0103.rb +3 -2
- data/lib/element_numbers/0100/en_0107.rb +4 -3
- data/lib/element_numbers/0100/en_0108.rb +22 -11
- data/lib/element_numbers/0100/en_0110.rb +3 -2
- data/lib/element_numbers/0100/en_0112.rb +3 -2
- data/lib/element_numbers/0100/en_0113.rb +3 -2
- data/lib/element_numbers/0100/en_0118.rb +3 -2
- data/lib/element_numbers/0100/en_0119.rb +4 -4
- data/lib/element_numbers/0100/en_0130.rb +3 -2
- data/lib/element_numbers/0100/en_0131.rb +3 -2
- data/lib/element_numbers/0100/en_0132.rb +9 -7
- data/lib/element_numbers/0100/en_0133.rb +3 -2
- data/lib/element_numbers/0100/en_0134.rb +5 -5
- data/lib/element_numbers/0100/en_0135.rb +5 -5
- data/lib/element_numbers/0100/en_0136.rb +5 -5
- data/lib/element_numbers/0100/en_0137.rb +5 -5
- data/lib/element_numbers/0100/en_0138.rb +5 -5
- data/lib/element_numbers/0100/en_0139.rb +5 -5
- data/lib/element_numbers/0100/en_0140.rb +5 -5
- data/lib/element_numbers/0100/en_0141.rb +5 -5
- data/lib/element_numbers/0100/en_0155.rb +3 -3
- data/lib/element_numbers/0100/en_0156.rb +3 -3
- data/lib/element_numbers/0100/en_0160.rb +4 -5
- data/lib/element_numbers/0100/en_0161.rb +4 -5
- data/lib/element_numbers/0100/en_0162.rb +4 -4
- data/lib/element_numbers/0100/en_0164.rb +3 -3
- data/lib/element_numbers/0100/en_0174.rb +3 -3
- data/lib/element_numbers/0100/en_0177.rb +3 -3
- data/lib/element_numbers/0600/en_0601.rb +4 -3
- data/lib/element_numbers/0700/en_0711.rb +4 -4
- data/lib/element_numbers/0700/en_0715.rb +4 -5
- data/lib/element_numbers/0700/en_0716.rb +4 -4
- data/lib/element_numbers/0700/en_0717.rb +4 -4
- data/lib/element_numbers/300/en_310M.rb +3 -3
- data/lib/element_numbers/300/en_313HH.rb +0 -2
- data/lib/element_numbers/8000/en_8102.rb +3 -2
- data/lib/element_numbers/8000/en_8103.rb +3 -2
- data/lib/element_numbers/8000/en_8109.rb +3 -2
- data/lib/element_numbers/8000/en_8123.rb +3 -2
- data/lib/element_numbers/8000/en_8128.rb +3 -2
- data/lib/element_numbers/8000/en_8133.rb +3 -2
- data/lib/element_numbers/8000/en_8136.rb +3 -2
- data/lib/element_numbers/8000/en_8137.rb +3 -2
- data/lib/element_numbers/8000/en_8180.rb +3 -2
- data/lib/element_numbers/8000/en_8181.rb +3 -2
- data/lib/element_numbers/8000/en_8502.rb +8 -6
- data/lib/element_numbers/8000/en_8503.rb +8 -6
- data/lib/element_numbers/8000/en_8504.rb +8 -6
- data/lib/element_numbers/8000/en_8505.rb +8 -6
- data/lib/element_numbers/8000/en_8509.rb +8 -6
- data/lib/element_numbers/8000/en_8519.rb +8 -6
- data/lib/element_numbers/8000/en_8523.rb +8 -6
- data/lib/element_numbers/8000/en_8525.rb +8 -6
- data/lib/element_numbers/8000/en_8526.rb +9 -7
- data/lib/element_numbers/8000/en_8528.rb +8 -6
- data/lib/element_numbers/8000/en_8531.rb +8 -6
- data/lib/element_numbers/8000/en_8532.rb +8 -6
- data/lib/element_numbers/8000/en_8533.rb +10 -9
- data/lib/element_numbers/8000/en_8536.rb +8 -6
- data/lib/element_numbers/8000/en_8537.rb +8 -6
- data/lib/element_numbers/8000/en_8538.rb +8 -6
- data/lib/element_numbers/8000/en_8574.rb +8 -6
- data/lib/element_numbers/8000/en_8580.rb +8 -6
- data/lib/element_numbers/8000/en_8581.rb +8 -6
- data/lib/element_numbers/A/en_A107.rb +3 -2
- data/lib/element_numbers/B/en_B000.rb +5 -5
- data/lib/element_numbers/B/en_B2185.rb +3 -2
- data/lib/element_numbers/B/en_B3010.rb +3 -2
- data/lib/element_numbers/B/en_B3076.rb +3 -2
- data/lib/element_numbers/B/en_B3080.rb +3 -2
- data/lib/element_numbers/B/en_B3081.rb +3 -2
- data/lib/element_numbers/B/en_B3200.rb +3 -2
- data/lib/element_numbers/B/en_B3225.rb +3 -2
- data/lib/element_numbers/B/en_B3226.rb +3 -2
- data/lib/element_numbers/B/en_B3227.rb +3 -2
- data/lib/element_numbers/B/en_B3251.rb +3 -2
- data/lib/element_numbers/B/en_B5011.rb +3 -2
- data/lib/element_numbers/B/en_B5013.rb +3 -2
- data/lib/element_numbers/B/en_B5014.rb +3 -2
- data/lib/element_numbers/B/en_B5016.rb +3 -2
- data/lib/element_numbers/D/en_D105N.rb +3 -3
- data/lib/element_numbers/D/en_D105S.rb +3 -2
- data/lib/element_numbers/D/en_D200.rb +3 -3
- data/lib/element_numbers/F/en_F031.rb +3 -3
- data/lib/element_numbers/G/en_G2001.rb +5 -5
- data/lib/element_numbers/G/en_G2514.rb +3 -3
- data/lib/element_numbers/G/en_G2516.rb +3 -3
- data/lib/element_numbers/G/en_G2601.rb +3 -3
- data/lib/element_numbers/G/en_G2602.rb +3 -3
- data/lib/element_numbers/G/en_G2603.rb +3 -3
- data/lib/element_numbers/G/en_GEO6.rb +3 -3
- data/lib/element_numbers/L/en_L000.rb +4 -4
- data/lib/element_numbers/P/en_P213E.rb +4 -4
- data/lib/element_numbers/P/en_P213H.rb +21 -21
- data/lib/element_numbers/P/en_P213W.rb +4 -4
- data/lib/element_numbers/P/en_P400.rb +6 -4
- data/lib/element_numbers/T/en_T2000.rb +4 -4
- data/lib/element_numbers/V/en_V000.rb +3 -3
- data/lib/element_numbers/Y/en_Y000.rb +3 -3
- data/lib/experian.rb +10 -10
- data/spec/functional/0000/en_0000_spec.rb +13 -16
- data/spec/functional/0100/en_0100_spec.rb +13 -20
- data/spec/functional/0100/en_0103_spec.rb +9 -12
- data/spec/functional/0100/en_0107_spec.rb +10 -13
- data/spec/functional/0100/en_0108_spec.rb +411 -445
- data/spec/functional/0100/en_0110_spec.rb +11 -14
- data/spec/functional/0100/en_0112_spec.rb +7 -10
- data/spec/functional/0100/en_0113_spec.rb +12 -16
- data/spec/functional/0100/en_0118_spec.rb +11 -15
- data/spec/functional/0100/en_0119_spec.rb +7 -10
- data/spec/functional/0100/en_0130_spec.rb +8 -12
- data/spec/functional/0100/en_0131_spec.rb +9 -13
- data/spec/functional/0100/en_0132_spec.rb +4 -8
- data/spec/functional/0100/en_0133_spec.rb +4 -8
- data/spec/functional/0100/en_0134_spec.rb +15 -19
- data/spec/functional/0100/en_0135_spec.rb +15 -19
- data/spec/functional/0100/en_0136_spec.rb +15 -19
- data/spec/functional/0100/en_0137_spec.rb +14 -18
- data/spec/functional/0100/en_0138_spec.rb +14 -18
- data/spec/functional/0100/en_0139_spec.rb +14 -18
- data/spec/functional/0100/en_0140_spec.rb +14 -18
- data/spec/functional/0100/en_0141_spec.rb +14 -18
- data/spec/functional/0100/en_0155_spec.rb +7 -11
- data/spec/functional/0100/en_0156_spec.rb +7 -11
- data/spec/functional/0100/en_0160_spec.rb +8 -13
- data/spec/functional/0100/en_0161_spec.rb +8 -12
- data/spec/functional/0100/en_0162_spec.rb +7 -11
- data/spec/functional/0100/en_0164_spec.rb +9 -14
- data/spec/functional/0100/en_0174_spec.rb +8 -13
- data/spec/functional/0100/en_0177_spec.rb +7 -12
- data/spec/functional/0600/en_0601_spec.rb +7 -12
- data/spec/functional/0700/en_0711_spec.rb +10 -13
- data/spec/functional/0700/en_0715_spec.rb +11 -15
- data/spec/functional/0700/en_0716_spec.rb +11 -15
- data/spec/functional/0700/en_0717_spec.rb +11 -12
- data/spec/functional/300/en_310M_spec.rb +66 -70
- data/spec/functional/300/en_313HH_spec.rb +7 -12
- data/spec/functional/8000/en_8102_spec.rb +7 -10
- data/spec/functional/8000/en_8103_spec.rb +7 -10
- data/spec/functional/8000/en_8109_spec.rb +7 -10
- data/spec/functional/8000/en_8123_spec.rb +7 -10
- data/spec/functional/8000/en_8128_spec.rb +7 -10
- data/spec/functional/8000/en_8133_spec.rb +7 -10
- data/spec/functional/8000/en_8136_spec.rb +7 -10
- data/spec/functional/8000/en_8137_spec.rb +7 -10
- data/spec/functional/8000/en_8180_spec.rb +7 -10
- data/spec/functional/8000/en_8181_spec.rb +7 -10
- data/spec/functional/8000/en_8502_spec.rb +10 -13
- data/spec/functional/8000/en_8503_spec.rb +10 -13
- data/spec/functional/8000/en_8504_spec.rb +10 -13
- data/spec/functional/8000/en_8505_spec.rb +10 -13
- data/spec/functional/8000/en_8509_spec.rb +7 -10
- data/spec/functional/8000/en_8519_spec.rb +10 -13
- data/spec/functional/8000/en_8523_spec.rb +7 -10
- data/spec/functional/8000/en_8525_spec.rb +10 -13
- data/spec/functional/8000/en_8526_spec.rb +10 -13
- data/spec/functional/8000/en_8536_spec.rb +7 -10
- data/spec/functional/8000/en_8537_spec.rb +7 -10
- data/spec/functional/8000/en_8580_spec.rb +7 -10
- data/spec/functional/8000/en_8581_spec.rb +7 -10
- data/spec/functional/A/en_A107_spec.rb +9 -14
- data/spec/functional/B/en_B2185_spec.rb +7 -9
- data/spec/functional/B/en_B3010_spec.rb +7 -9
- data/spec/functional/B/en_B3076_spec.rb +7 -10
- data/spec/functional/B/en_B3080_spec.rb +7 -10
- data/spec/functional/B/en_B3081_spec.rb +7 -10
- data/spec/functional/B/en_B3200_spec.rb +7 -10
- data/spec/functional/B/en_B3225_spec.rb +7 -10
- data/spec/functional/B/en_B3226_spec.rb +7 -10
- data/spec/functional/B/en_B3227_spec.rb +7 -10
- data/spec/functional/B/en_B3251_spec.rb +7 -10
- data/spec/functional/B/en_B5011_spec.rb +7 -9
- data/spec/functional/B/en_B5013_spec.rb +7 -9
- data/spec/functional/B/en_B5014_spec.rb +7 -9
- data/spec/functional/B/en_B5016_spec.rb +7 -9
- data/spec/functional/D/en_D105N_spec.rb +16 -19
- data/spec/functional/D/en_D200_spec.rb +7 -10
- data/spec/functional/F/en_F031_spec.rb +11 -15
- data/spec/functional/G/en_G2001_spec.rb +8 -9
- data/spec/functional/G/en_G2514_spec.rb +9 -11
- data/spec/functional/G/en_G2516_spec.rb +9 -11
- data/spec/functional/G/en_G2602_spec.rb +8 -9
- data/spec/functional/G/en_G2603_spec.rb +10 -11
- data/spec/functional/L/en_L000_spec.rb +1 -1
- data/spec/functional/P/en_P213E_spec.rb +8 -11
- data/spec/functional/P/en_P213H_spec.rb +8 -11
- data/spec/functional/P/en_P213W_spec.rb +8 -11
- data/spec/functional/P/en_P400_spec.rb +5 -8
- data/spec/functional/T/en_T2000_spec.rb +9 -14
- data/spec/functional/V/en_V000_spec.rb +8 -10
- data/spec/functional/Y/en_Y000_spec.rb +10 -12
- data/spec/functional/experian_spec.rb +11 -14
- data/spec/spec_helper.rb +2 -2
- metadata +5 -3
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b5016' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b5016','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b5016', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b5016', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b5016', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b5016', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b5016', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b5016', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|
@@ -1,30 +1,27 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary d105n' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('d105n','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
|
6
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'A')).to eq('$1,000 - $14,999') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'B')).to eq('$15,000 - $24,999') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'C')).to eq('$25,000 - $34,999') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'D')).to eq('$35,000 - $49,999') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'E')).to eq('$50,000 - $74,999') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'F')).to eq('$75,000 - $99,999') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'G')).to eq('$100,000 - $124,999') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'H')).to eq('$125,000 - $149,999') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'I')).to eq('$150,000 - $174,999') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'J')).to eq('$175,000 - $199,999') }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'K')).to eq('$200,000 - $249,999') }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'L')).to eq('$250,000+') }
|
20
18
|
|
21
|
-
it { expect(
|
19
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'U')).to eq('Unknown') }
|
22
20
|
end
|
23
21
|
|
24
22
|
context 'invalid lookup' do
|
25
|
-
it { expect(
|
26
|
-
it { expect(
|
27
|
-
it { expect(
|
23
|
+
it { expect(Experian::DataDictionary.lookup('d105n', 'N')).to be_nil }
|
24
|
+
it { expect(Experian::DataDictionary.lookup('d105n', '4')).to be_nil }
|
25
|
+
it { expect(Experian::DataDictionary.lookup('d105n', '0')).to be_nil }
|
28
26
|
end
|
29
|
-
|
30
27
|
end
|
@@ -1,21 +1,18 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary d200' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('d200','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
|
11
|
-
|
6
|
+
it { expect(Experian::DataDictionary.lookup('d200', '0')).to eq('Not eligible') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('d200', '1')).to eq('Married with likely 1 income or not married') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('d200', '2')).to eq('Married with likely dual incomes in living unit') }
|
12
9
|
|
13
|
-
it { expect(
|
10
|
+
it { expect(Experian::DataDictionary.lookup('d200', ' ')).to eq('Unknown') }
|
14
11
|
end
|
15
12
|
|
16
13
|
context 'invalid lookup' do
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
14
|
+
it { expect(Experian::DataDictionary.lookup('d200', 'N')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('d200', '4')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('d200', '3')).to be_nil }
|
20
17
|
end
|
21
18
|
end
|
@@ -1,25 +1,21 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary f031' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('f031','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
it { expect(Experian::DataDictionary.lookup('f031', '01')).to eq('High profitability, high likelihood to perform') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('f031', '02')).to eq('High profitability, high likelihood to perform') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('f031', '03')).to eq('High profitability, high likelihood to perform') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('f031', '08')).to eq('Poor Profitability, unlikely to perform') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('f031', '13')).to eq('Low Profitability, unlikely to perform') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('f031', '11')).to eq('Low Profitability, unlikely to perform') }
|
16
12
|
|
17
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('f031', ' ')).to eq('Unknown') }
|
18
14
|
end
|
19
15
|
|
20
16
|
context 'invalid lookup' do
|
21
|
-
it { expect(
|
22
|
-
it { expect(
|
23
|
-
it { expect(
|
17
|
+
it { expect(Experian::DataDictionary.lookup('f031', 'P')).to be_nil }
|
18
|
+
it { expect(Experian::DataDictionary.lookup('f031', '0')).to be_nil }
|
19
|
+
it { expect(Experian::DataDictionary.lookup('f031', '14')).to be_nil }
|
24
20
|
end
|
25
|
-
end
|
21
|
+
end
|
@@ -1,17 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary g2001' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('g2001', '0701')).to eq(70.1) }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('g2001', '0962')).to eq(96.2) }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('g2001', '1000')).to eq(100.0) }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('g2001', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('g2001', 'P')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('g2001', '0')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('g2001', '14')).to eq('Unknown') }
|
16
15
|
end
|
17
|
-
end
|
16
|
+
end
|
@@ -1,21 +1,19 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary g2514' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('g2514','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '0')).to eq('Decile 1') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '4')).to eq('Decile 5') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '6')).to eq('Decile 7') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '8')).to eq('Decile 9') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '9')).to eq('Decile 10') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('g2514', ' ')).to eq('Unknown') }
|
13
12
|
end
|
14
13
|
|
15
14
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
15
|
+
it { expect(Experian::DataDictionary.lookup('g2514', 'P')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '10')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('g2514', '14')).to be_nil }
|
19
18
|
end
|
20
19
|
end
|
21
|
-
|
@@ -1,21 +1,19 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary g2516' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('g2516','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '0')).to eq('Decile 1') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '4')).to eq('Decile 5') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '6')).to eq('Decile 7') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '8')).to eq('Decile 9') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '9')).to eq('Decile 10') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('g2516', ' ')).to eq('Unknown') }
|
13
12
|
end
|
14
13
|
|
15
14
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
15
|
+
it { expect(Experian::DataDictionary.lookup('g2516', 'P')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '10')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('g2516', '14')).to be_nil }
|
19
18
|
end
|
20
19
|
end
|
21
|
-
|
@@ -1,18 +1,17 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary g2602' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('g2602','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('g2602', 'A')).to eq('Metropolitan') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('g2602', 'B')).to eq('Micropolitan') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('g2602', 'C')).to eq('Rural') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('g2602', ' ')).to eq('Unknown') }
|
11
10
|
end
|
12
11
|
|
13
12
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('g2602', 'P')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('g2602', '10')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('g2602', '14')).to be_nil }
|
17
16
|
end
|
18
|
-
end
|
17
|
+
end
|
@@ -1,21 +1,20 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary g2603' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('g2603','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '1')).to eq('Counties in Metro Areas with population 1,000,000 or more') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '4')).to eq('Urban population of 20,000 or more, adjacent to a Metro Area.') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '7')).to eq('Urban population of 2,500 to 19,999, not adjacent to a Metro Area.') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '9')).to eq('Completely rural or less than 2,500 urban population, not adjacent to a Metro Area.') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '6')).to eq('Urban population of 2,500 to 19,999, adjacent to a Metro Area.') }
|
12
11
|
|
13
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('g2603', ' ')).to eq('Unknown') }
|
14
13
|
end
|
15
14
|
|
16
15
|
context 'invalid lookup' do
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
16
|
+
it { expect(Experian::DataDictionary.lookup('g2603', 'P')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '10')).to be_nil }
|
18
|
+
it { expect(Experian::DataDictionary.lookup('g2603', '14')).to be_nil }
|
20
19
|
end
|
21
|
-
end
|
20
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary p213e' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('p213e', '101')).to eq('Less than $25,000 - Extremely Likely (Household level code)') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('p213e', '305')).to eq('$100,000 - $249,999 - Likely (Zip level code)') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('p213e', '210')).to eq('$2,000,000+ - Highly Likely (Zip 4 level code)') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('p213e', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('p213e', 'D')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('p213e', 'GG')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('p213e', 'DOG')).to eq('Unknown') }
|
17
15
|
end
|
18
|
-
|
19
|
-
end
|
16
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary p213h' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('p213h', '101')).to eq('The Wealth Market - Wealthy Older Mostly w/o Kids When it comes to American affluence, The Wealth Market is home to the richest addresses in the nation. Consisting of older suburban couples, this is where to find millionaires in the P$YCLE system. Most of the households boast more than $1 million in income-producing assets, and invest in a broad range of stocks, corporate/municipal bonds, mutual funds, and real estate. These consumers also excel in buying annuities and other investment-style life insurance products. In The Wealth Market, residents are known for both making money and spending money in grand style, splurging on foreign travel and cultural events as well as hiring a small army of financial managers, estate planners, and full-service brokers the better to accumulate more assets. - Extremely Likely (Household level code)') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('p213h', '305')).to eq('Power Couples - Wealthy Older w/o Kids The most affluent Younger Years segment, Power Couples seems to have it made: six-figure incomes, designer-decorated houses, and high balances in their income-producing assets. As investors, these mostly 45- to 54-year-old couples boast retirement accounts containing a welldiversified mix of options, stocks, and mutual funds. Typically college-educated and holding management jobs, they also tend to be cultured consumers who travel the world, subscribe to publications like Forbes and Architectural Digest, and shop at swanky stores like Lord & Taylor and Nordstrom. When it comes to managing their money, however, they put their faith in the pros, exhibiting high rates for using asset managers, estate planners, and full-service brokers. Internet savvy, they track how well their investments are doing online. - Likely (Zip level code)') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('p213h', '210')).to eq('Capital Accumulators - Upper Mid Older Mostly w/o Kids Capital Accumulators is a collection of 55+ year-old suburbanites dedicated to growing their IRAs and 401(k) retirement accounts. Theyre twice as likely as average Americans to own securities, mutual funds, and real estate investments. Many households are home to white-collar professionals who have parlayed upper middle class incomes into substantial income-producing assets. They tend to lead very active lifestyles, traveling abroad, skiing at exclusive resorts, and paying for investment advice from stockbrokers and financial planners. With their brains and bucks, Capital Accumulators consume a variety of media, reading the Wall Street Journal and Cigar Aficionado, and watching pay-per-view movies at high rates. - Highly Likely (Zip 4 level code)') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('p213h', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('p213h', 'D')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('p213h', 'GG')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('p213h', 'DOG')).to eq('Unknown') }
|
17
15
|
end
|
18
|
-
|
19
|
-
end
|
16
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary p213w' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('p213w', '101')).to eq('$0 - $24,999 - Extremely Likely (Household level code)') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('p213w', '305')).to eq('$100,000 - $149,999 - Likely (Zip level code)') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('p213w', '210')).to eq('$1,000,000+ - Highly Likely (Zip 4 level code)') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('p213w', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('p213w', 'D')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('p213w', 'GG')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('p213w', 'DOG')).to eq('Unknown') }
|
17
15
|
end
|
18
|
-
|
19
|
-
end
|
16
|
+
end
|
@@ -1,17 +1,14 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary p400' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('p400', ' ')).to eq('Unknown') }
|
7
6
|
end
|
8
7
|
|
9
|
-
|
10
8
|
context 'invalid lookup' do
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
9
|
+
it { expect(Experian::DataDictionary.lookup('p400', 'F')).to be_nil }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('p400', 'PE')).to be_nil }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('p400', 'GG')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('p400', 'DOG')).to be_nil }
|
15
13
|
end
|
16
|
-
|
17
14
|
end
|
@@ -1,23 +1,18 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary t2000' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
|
12
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('t2000', ' ')).to eq('Unknown') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('t2000', '400888')).to eq('Zip+4 level data - 00888') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'L87900')).to eq('Living unit level data - 87900') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'Z12333')).to eq('Zip level data - 12333') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'Z')).to eq('Unknown') }
|
13
10
|
end
|
14
11
|
|
15
|
-
|
16
12
|
context 'invalid lookup' do
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
20
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'F')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'PE')).to eq('Unknown') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'GG')).to eq('Unknown') }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('t2000', 'DOG')).to eq('Unknown') }
|
21
17
|
end
|
22
|
-
|
23
18
|
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary v000' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('v000', ' ')).to eq('Non-match') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('v000', 'Z')).to eq('Zip Level Match') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('v000', '4')).to eq('Zip +4 Level Match') }
|
9
8
|
end
|
10
9
|
|
11
|
-
|
12
10
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('v000', 'F')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('v000', 'PE')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('v000', 'GG')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('v000', 'DOG')).to be_nil }
|
17
15
|
end
|
18
|
-
end
|
16
|
+
end
|