experian-data-dictionary 1.0

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.
Files changed (152) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.pryrc +3 -0
  4. data/.rspec +2 -0
  5. data/.ruby-gemset +1 -0
  6. data/.ruby-version +1 -0
  7. data/Gemfile +12 -0
  8. data/Gemfile.lock +61 -0
  9. data/README.rdoc +43 -0
  10. data/Rakefile +32 -0
  11. data/docs/BCM_Sample_Experian.csv +1 -0
  12. data/docs/DataDictionary_NonProfit_Experian.pdf +0 -0
  13. data/experian_data_dictionary.gemspec +21 -0
  14. data/lib/element_numbers/en_0000.rb +23 -0
  15. data/lib/element_numbers/en_0100.rb +34 -0
  16. data/lib/element_numbers/en_0103.rb +19 -0
  17. data/lib/element_numbers/en_0107.rb +24 -0
  18. data/lib/element_numbers/en_0108.rb +448 -0
  19. data/lib/element_numbers/en_0110.rb +20 -0
  20. data/lib/element_numbers/en_0112.rb +17 -0
  21. data/lib/element_numbers/en_0113.rb +22 -0
  22. data/lib/element_numbers/en_0118.rb +20 -0
  23. data/lib/element_numbers/en_0119.rb +16 -0
  24. data/lib/element_numbers/en_0130.rb +17 -0
  25. data/lib/element_numbers/en_0131.rb +18 -0
  26. data/lib/element_numbers/en_0132.rb +24 -0
  27. data/lib/element_numbers/en_0133.rb +16 -0
  28. data/lib/element_numbers/en_0134.rb +22 -0
  29. data/lib/element_numbers/en_0135.rb +22 -0
  30. data/lib/element_numbers/en_0136.rb +22 -0
  31. data/lib/element_numbers/en_0137.rb +22 -0
  32. data/lib/element_numbers/en_0138.rb +22 -0
  33. data/lib/element_numbers/en_0139.rb +22 -0
  34. data/lib/element_numbers/en_0140.rb +22 -0
  35. data/lib/element_numbers/en_0141.rb +22 -0
  36. data/lib/element_numbers/en_0155.rb +18 -0
  37. data/lib/element_numbers/en_0156.rb +18 -0
  38. data/lib/element_numbers/en_0160.rb +29 -0
  39. data/lib/element_numbers/en_0162.rb +26 -0
  40. data/lib/element_numbers/en_0164.rb +28 -0
  41. data/lib/element_numbers/en_0174.rb +21 -0
  42. data/lib/element_numbers/en_0711.rb +40 -0
  43. data/lib/element_numbers/en_0715.rb +22 -0
  44. data/lib/element_numbers/en_0716.rb +37 -0
  45. data/lib/element_numbers/en_0717.rb +41 -0
  46. data/lib/element_numbers/en_310M.rb +76 -0
  47. data/lib/element_numbers/en_8502.rb +40 -0
  48. data/lib/element_numbers/en_8503.rb +40 -0
  49. data/lib/element_numbers/en_8504.rb +40 -0
  50. data/lib/element_numbers/en_8505.rb +40 -0
  51. data/lib/element_numbers/en_8519.rb +40 -0
  52. data/lib/element_numbers/en_8525.rb +40 -0
  53. data/lib/element_numbers/en_8526.rb +40 -0
  54. data/lib/element_numbers/en_8528.rb +40 -0
  55. data/lib/element_numbers/en_8531.rb +40 -0
  56. data/lib/element_numbers/en_8532.rb +40 -0
  57. data/lib/element_numbers/en_8533.rb +40 -0
  58. data/lib/element_numbers/en_8538.rb +40 -0
  59. data/lib/element_numbers/en_8574.rb +40 -0
  60. data/lib/element_numbers/en_A107.rb +24 -0
  61. data/lib/element_numbers/en_B000.rb +20 -0
  62. data/lib/element_numbers/en_B2185.rb +17 -0
  63. data/lib/element_numbers/en_B3010.rb +17 -0
  64. data/lib/element_numbers/en_B5011.rb +17 -0
  65. data/lib/element_numbers/en_B5013.rb +17 -0
  66. data/lib/element_numbers/en_B5014.rb +17 -0
  67. data/lib/element_numbers/en_B5016.rb +17 -0
  68. data/lib/element_numbers/en_D105N.rb +29 -0
  69. data/lib/element_numbers/en_D200.rb +19 -0
  70. data/lib/element_numbers/en_F031.rb +29 -0
  71. data/lib/element_numbers/en_G2001.rb +15 -0
  72. data/lib/element_numbers/en_G2514.rb +26 -0
  73. data/lib/element_numbers/en_G2516.rb +26 -0
  74. data/lib/element_numbers/en_G2601.rb +14 -0
  75. data/lib/element_numbers/en_G2602.rb +19 -0
  76. data/lib/element_numbers/en_G2603.rb +25 -0
  77. data/lib/element_numbers/en_GE06.rb +28 -0
  78. data/lib/element_numbers/en_L000.rb +29 -0
  79. data/lib/element_numbers/en_P213E.rb +36 -0
  80. data/lib/element_numbers/en_P213H.rb +262 -0
  81. data/lib/element_numbers/en_P213W.rb +35 -0
  82. data/lib/element_numbers/en_P400.rb +47 -0
  83. data/lib/element_numbers/en_T200.rb +20 -0
  84. data/lib/element_numbers/en_V000.rb +18 -0
  85. data/lib/element_numbers/en_Y000.rb +20 -0
  86. data/lib/experian.rb +40 -0
  87. data/spec/functional/en_0000_spec.rb +24 -0
  88. data/spec/functional/en_0100_spec.rb +34 -0
  89. data/spec/functional/en_0103_spec.rb +20 -0
  90. data/spec/functional/en_0107_spec.rb +21 -0
  91. data/spec/functional/en_0108_spec.rb +504 -0
  92. data/spec/functional/en_0110_spec.rb +22 -0
  93. data/spec/functional/en_0112_spec.rb +19 -0
  94. data/spec/functional/en_0113_spec.rb +25 -0
  95. data/spec/functional/en_0118_spec.rb +23 -0
  96. data/spec/functional/en_0119_spec.rb +19 -0
  97. data/spec/functional/en_0130_spec.rb +21 -0
  98. data/spec/functional/en_0131_spec.rb +22 -0
  99. data/spec/functional/en_0132_spec.rb +18 -0
  100. data/spec/functional/en_0133_spec.rb +16 -0
  101. data/spec/functional/en_0134_spec.rb +27 -0
  102. data/spec/functional/en_0135_spec.rb +27 -0
  103. data/spec/functional/en_0136_spec.rb +27 -0
  104. data/spec/functional/en_0137_spec.rb +27 -0
  105. data/spec/functional/en_0138_spec.rb +27 -0
  106. data/spec/functional/en_0139_spec.rb +27 -0
  107. data/spec/functional/en_0140_spec.rb +27 -0
  108. data/spec/functional/en_0141_spec.rb +27 -0
  109. data/spec/functional/en_0155_spec.rb +19 -0
  110. data/spec/functional/en_0156_spec.rb +19 -0
  111. data/spec/functional/en_0160_spec.rb +22 -0
  112. data/spec/functional/en_0162_spec.rb +19 -0
  113. data/spec/functional/en_0164_spec.rb +22 -0
  114. data/spec/functional/en_0174_spec.rb +21 -0
  115. data/spec/functional/en_0711_spec.rb +21 -0
  116. data/spec/functional/en_0715_spec.rb +24 -0
  117. data/spec/functional/en_0716_spec.rb +24 -0
  118. data/spec/functional/en_0717_spec.rb +21 -0
  119. data/spec/functional/en_310M_spec.rb +78 -0
  120. data/spec/functional/en_8502_spec.rb +22 -0
  121. data/spec/functional/en_8503_spec.rb +22 -0
  122. data/spec/functional/en_8504_spec.rb +23 -0
  123. data/spec/functional/en_8505_spec.rb +22 -0
  124. data/spec/functional/en_8519_spec.rb +22 -0
  125. data/spec/functional/en_8525_spec.rb +22 -0
  126. data/spec/functional/en_8526_spec.rb +22 -0
  127. data/spec/functional/en_A107_spec.rb +24 -0
  128. data/spec/functional/en_B2185_spec.rb +18 -0
  129. data/spec/functional/en_B3010_spec.rb +18 -0
  130. data/spec/functional/en_B5011_spec.rb +18 -0
  131. data/spec/functional/en_B5013_spec.rb +18 -0
  132. data/spec/functional/en_B5014_spec.rb +18 -0
  133. data/spec/functional/en_B5016_spec.rb +18 -0
  134. data/spec/functional/en_D105N_spec.rb +30 -0
  135. data/spec/functional/en_D200_spec.rb +21 -0
  136. data/spec/functional/en_F031_spec.rb +25 -0
  137. data/spec/functional/en_G2001_spec.rb +17 -0
  138. data/spec/functional/en_G2514_spec.rb +21 -0
  139. data/spec/functional/en_G2516_spec.rb +21 -0
  140. data/spec/functional/en_G2602_spec.rb +18 -0
  141. data/spec/functional/en_G2603_spec.rb +21 -0
  142. data/spec/functional/en_L000_spec.rb +16 -0
  143. data/spec/functional/en_P213E_spec.rb +19 -0
  144. data/spec/functional/en_P213H_spec.rb +19 -0
  145. data/spec/functional/en_P213W_spec.rb +19 -0
  146. data/spec/functional/en_P400_spec.rb +17 -0
  147. data/spec/functional/en_T200_spec.rb +23 -0
  148. data/spec/functional/en_V000_spec.rb +18 -0
  149. data/spec/functional/en_Y000_spec.rb +20 -0
  150. data/spec/functional/experian_spec.rb +27 -0
  151. data/spec/spec_helper.rb +23 -0
  152. metadata +259 -0
@@ -0,0 +1,22 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0110p' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0110p','P') ).to eq('Primary Decision Maker') }
7
+ it { expect( Experian::DataDictionary.lookup('0110p','E') ).to eq('Elderly Parent') }
8
+ it { expect( Experian::DataDictionary.lookup('0110p','D') ).to eq('Deceased') }
9
+ it { expect( Experian::DataDictionary.lookup('0110p','Y') ).to eq('Young Adult') }
10
+ it { expect( Experian::DataDictionary.lookup('0110p','O') ).to eq('Other or blank') }
11
+ it { expect( Experian::DataDictionary.lookup('0110p',' ') ).to eq('Other or blank') }
12
+ end
13
+
14
+
15
+ context 'invalid lookup' do
16
+ it { expect( Experian::DataDictionary.lookup('0110p','F') ).to be_nil }
17
+ it { expect( Experian::DataDictionary.lookup('0110p','PE') ).to be_nil }
18
+ it { expect( Experian::DataDictionary.lookup('0110p','GG') ).to be_nil }
19
+ it { expect( Experian::DataDictionary.lookup('0110p','DOG') ).to be_nil }
20
+ end
21
+
22
+ end
@@ -0,0 +1,19 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0112' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0112','D') ).to eq('Deceased Indicator') }
7
+ it { expect( Experian::DataDictionary.lookup('0112',' ') ).to eq('Unknown') }
8
+ it { expect( Experian::DataDictionary.lookup('0112','blank') ).to eq('Unknown') }
9
+ end
10
+
11
+
12
+ context 'invalid lookup' do
13
+ it { expect( Experian::DataDictionary.lookup('0112','F') ).to be_nil }
14
+ it { expect( Experian::DataDictionary.lookup('0112','PE') ).to be_nil }
15
+ it { expect( Experian::DataDictionary.lookup('0112','GG') ).to be_nil }
16
+ it { expect( Experian::DataDictionary.lookup('0112','DOG') ).to be_nil }
17
+ end
18
+
19
+ end
@@ -0,0 +1,25 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0113a' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0113a','H') ).to eq('Homeowner') }
7
+ it { expect( Experian::DataDictionary.lookup('0113a','9') ).to eq('Extremely Likely') }
8
+ it { expect( Experian::DataDictionary.lookup('0113a','8') ).to eq('Highly Likely') }
9
+ it { expect( Experian::DataDictionary.lookup('0113a','7') ).to eq('Likely') }
10
+ it { expect( Experian::DataDictionary.lookup('0113a','R') ).to eq('Renter') }
11
+ it { expect( Experian::DataDictionary.lookup('0113a','T') ).to eq('Probable Renter') }
12
+ it { expect( Experian::DataDictionary.lookup('0113a','U') ).to eq('Unknown') }
13
+ it { expect( Experian::DataDictionary.lookup('0113a',' ') ).to eq('Unknown') }
14
+
15
+ end
16
+
17
+
18
+ context 'invalid lookup' do
19
+ it { expect( Experian::DataDictionary.lookup('0113a','F') ).to be_nil }
20
+ it { expect( Experian::DataDictionary.lookup('0113a','HE') ).to be_nil }
21
+ it { expect( Experian::DataDictionary.lookup('0113a','GG') ).to be_nil }
22
+ it { expect( Experian::DataDictionary.lookup('0113a','DOG') ).to be_nil }
23
+ end
24
+
25
+ end
@@ -0,0 +1,23 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0118' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0118','S') ).to eq('Single Family') }
7
+ it { expect( Experian::DataDictionary.lookup('0118','A') ).to eq('Multi-Family & Condominiums') }
8
+ it { expect( Experian::DataDictionary.lookup('0118','M') ).to eq('Marginal Multi-Family') }
9
+ it { expect( Experian::DataDictionary.lookup('0118','P') ).to eq('Post Office Box') }
10
+ it { expect( Experian::DataDictionary.lookup('0118','U') ).to eq('Unknown') }
11
+ it { expect( Experian::DataDictionary.lookup('0118',' ') ).to eq('Unknown') }
12
+
13
+ end
14
+
15
+
16
+ context 'invalid lookup' do
17
+ it { expect( Experian::DataDictionary.lookup('0118','F') ).to be_nil }
18
+ it { expect( Experian::DataDictionary.lookup('0118','HE') ).to be_nil }
19
+ it { expect( Experian::DataDictionary.lookup('0118','GG') ).to be_nil }
20
+ it { expect( Experian::DataDictionary.lookup('0118','DOG') ).to be_nil }
21
+ end
22
+
23
+ end
@@ -0,0 +1,19 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0119' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0119','0') ).to eq('Less than a year') }
7
+ it { expect( Experian::DataDictionary.lookup('0119','00') ).to eq('Less than a year') }
8
+ it { expect( Experian::DataDictionary.lookup('0119', '9') ).to eq('9 years') }
9
+ it { expect( Experian::DataDictionary.lookup('0119', '99') ).to eq('99 years') }
10
+ it { expect( Experian::DataDictionary.lookup('0119', 22) ).to eq('22 years') }
11
+ end
12
+
13
+
14
+ context 'invalid lookup' do
15
+ it { expect( Experian::DataDictionary.lookup('0119','') ).to be_nil }
16
+ it { expect( Experian::DataDictionary.lookup('0119','D') ).to be_nil }
17
+ end
18
+
19
+ end
@@ -0,0 +1,21 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0130' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0130','Y') ).to eq('Yes') }
7
+ it { expect( Experian::DataDictionary.lookup('0130','U') ).to eq('Unknown') }
8
+ it { expect( Experian::DataDictionary.lookup('0130',' ') ).to eq('Unknown') }
9
+
10
+ end
11
+
12
+
13
+ context 'invalid lookup' do
14
+ it { expect( Experian::DataDictionary.lookup('0130','0') ).to be_nil }
15
+ it { expect( Experian::DataDictionary.lookup('0130','F') ).to be_nil }
16
+ it { expect( Experian::DataDictionary.lookup('0130','HE') ).to be_nil }
17
+ it { expect( Experian::DataDictionary.lookup('0130','GG') ).to be_nil }
18
+ it { expect( Experian::DataDictionary.lookup('0130','DOG') ).to be_nil }
19
+ end
20
+
21
+ end
@@ -0,0 +1,22 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0131' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0131','Y') ).to eq('Yes') }
7
+ it { expect( Experian::DataDictionary.lookup('0131','M') ).to eq('Multi-Buyer (purchased from multiple mail order companies)') }
8
+ it { expect( Experian::DataDictionary.lookup('0131','U') ).to eq('Unknown') }
9
+ it { expect( Experian::DataDictionary.lookup('0131',' ') ).to eq('Unknown') }
10
+
11
+ end
12
+
13
+
14
+ context 'invalid lookup' do
15
+ it { expect( Experian::DataDictionary.lookup('0131','0') ).to be_nil }
16
+ it { expect( Experian::DataDictionary.lookup('0131','F') ).to be_nil }
17
+ it { expect( Experian::DataDictionary.lookup('0131','HE') ).to be_nil }
18
+ it { expect( Experian::DataDictionary.lookup('0131','GG') ).to be_nil }
19
+ it { expect( Experian::DataDictionary.lookup('0131','DOG') ).to be_nil }
20
+ end
21
+
22
+ end
@@ -0,0 +1,18 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0132a' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0132a','000') ).to eq('000') }
7
+ it { expect( Experian::DataDictionary.lookup('0132a','035') ).to eq('035') }
8
+ # it { expect( Experian::DataDictionary.lookup('0132a', 35) ).to eq('35') }
9
+ # it { expect( Experian::DataDictionary.lookup('0132a','a') ).to eq('a') }
10
+
11
+ end
12
+
13
+
14
+ context 'invalid lookup' do
15
+ it { expect( Experian::DataDictionary.lookup('0132a','aa') ).to eq('Unknown') }
16
+ end
17
+
18
+ end
@@ -0,0 +1,16 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0133' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0133','Y') ).to eq('Yes') }
7
+ it { expect( Experian::DataDictionary.lookup('0133',' ') ).to eq('Unknown') }
8
+
9
+ end
10
+
11
+
12
+ context 'invalid lookup' do
13
+ it { expect( Experian::DataDictionary.lookup('0133','0') ).to be_nil }
14
+ end
15
+
16
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0134' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0134','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0134','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0134','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0134','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0134','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0134','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0134','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0134','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0134','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0134','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0134',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0134','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0134','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0134','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0135' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0135','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0135','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0135','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0135','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0135','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0135','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0135','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0135','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0135','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0135','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0135',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0135','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0135','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0135','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0136' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0136','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0136','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0136','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0136','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0136','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0136','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0136','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0136','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0136','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0136','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0136',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0136','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0136','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0136','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0137' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0137','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0137','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0137','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0137','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0137','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0137','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0137','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0137','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0137','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0137','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0137',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0137','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0137','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0137','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0138' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0138','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0138','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0138','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0138','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0138','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0138','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0138','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0138','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0138','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0138','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0138',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0138','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0138','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0138','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0139' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0139','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0139','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0139','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0139','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0139','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0139','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0139','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0139','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0139','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0139','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0139',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0139','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0139','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0139','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0140' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0140','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0140','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0140','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0140','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0140','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0140','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0140','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0140','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0140','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0140','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0140',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0140','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0140','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0140','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,27 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0141' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0141','1') ).to eq('1 Response') }
7
+ it { expect( Experian::DataDictionary.lookup('0141','2') ).to eq('2 Responses') }
8
+ it { expect( Experian::DataDictionary.lookup('0141','3') ).to eq('3 Responses') }
9
+ it { expect( Experian::DataDictionary.lookup('0141','4') ).to eq('4 Responses') }
10
+ it { expect( Experian::DataDictionary.lookup('0141','5') ).to eq('5 Responses') }
11
+ it { expect( Experian::DataDictionary.lookup('0141','6') ).to eq('6 Responses') }
12
+ it { expect( Experian::DataDictionary.lookup('0141','7') ).to eq('7 Responses') }
13
+ it { expect( Experian::DataDictionary.lookup('0141','8') ).to eq('8 Responses') }
14
+ it { expect( Experian::DataDictionary.lookup('0141','9') ).to eq('9 Responses') }
15
+ it { expect( Experian::DataDictionary.lookup('0141','0') ).to eq('0 Responses') }
16
+ it { expect( Experian::DataDictionary.lookup('0141',' ') ).to eq('Unknown') }
17
+
18
+ end
19
+
20
+
21
+ context 'invalid lookup' do
22
+ it { expect( Experian::DataDictionary.lookup('0141','10') ).to eq('Unknown') }
23
+ it { expect( Experian::DataDictionary.lookup('0141','21') ).to eq('Unknown') }
24
+ it { expect( Experian::DataDictionary.lookup('0141','423') ).to eq('Unknown') }
25
+ end
26
+
27
+ end
@@ -0,0 +1,19 @@
1
+ require File.join(Dir.pwd, 'spec', 'spec_helper')
2
+
3
+ describe 'Experian::DataDictionary 0155' do
4
+
5
+ context 'valid lookup' do
6
+ it { expect( Experian::DataDictionary.lookup('0155','Y') ).to eq('Yes') }
7
+ it { expect( Experian::DataDictionary.lookup('0155','U') ).to eq('Unknown') }
8
+ it { expect( Experian::DataDictionary.lookup('0155',' ') ).to eq('Unknown') }
9
+
10
+ end
11
+
12
+
13
+ context 'invalid lookup' do
14
+ it { expect( Experian::DataDictionary.lookup('0155','9') ).to be_nil }
15
+ it { expect( Experian::DataDictionary.lookup('0155','A') ).to be_nil }
16
+ it { expect( Experian::DataDictionary.lookup('0155','R') ).to be_nil }
17
+ end
18
+
19
+ end