ssci_inc 0.1.17 → 0.1.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f556bc4f5c7acd9554471b3c737e5e3189254ad0
4
- data.tar.gz: a6a46371cf3f1e9e2e292c82983d3033b9c7599f
3
+ metadata.gz: 1c385b51b73fb47a5a6cb1895753a6c27c7c6eb9
4
+ data.tar.gz: 8af99f98e22d2229d615b95baba7fa2f7d534a78
5
5
  SHA512:
6
- metadata.gz: 4409378ffc702358a62a1fe3491325562169069d7b3fd9bf1d56067d6ea45607273c7b5876c605877203684e806679324bb6af330eb71ed96bdb06ae6d6c2614
7
- data.tar.gz: a4b09700ab311978152f642ab0b1be963867d2deaf5eee537f3c2a2b25ae0982bc059c4c9aa276664e83b8ef4a6cd745ba2b5910389253aeb374915386b1b725
6
+ metadata.gz: 4696fa9753810f6e2746a17b55a3d7d17595f3a9559d51c34db60b31305fb9c4ebc822bf5daa9bfd160e224ebcd7cfe8fb6424f52b8684b9b912926a4dc3c129
7
+ data.tar.gz: cd2f69b9fde62479493b06da7a9bdcfc56eda283f12c3bafbf50aaa5b6607ad69f20112e0fbcf923aac42fb58391a11ef98a2c71a63b19d2d450962795d6192d
data/lib/ssci_inc/dsl.rb CHANGED
@@ -7,7 +7,7 @@ module SsciInc
7
7
  @screenings << s
8
8
  end
9
9
 
10
- %w[Credit Criminal PersonSearch].each do |class_name|
10
+ %w[Credit Criminal Eviction Model Other PersonSearch Social].each do |class_name|
11
11
  class_eval <<-eoruby, __FILE__, __LINE__ + 1
12
12
  def #{class_name.underscore}_screen(*args, &block)
13
13
  screen(Screening::#{class_name}, *args, &block)
@@ -82,15 +82,6 @@ module SsciInc
82
82
  end
83
83
  end
84
84
 
85
- def name
86
- person_name do |p|
87
- p.given_name = given_name
88
- p.middle_name = middle_name
89
- p.family_name = family_name
90
- p.affix = affix
91
- end
92
- end
93
-
94
85
  def as_xml
95
86
  Nokogiri::XML::Builder.new do |xml|
96
87
  xml.BackgroundCheck(:userId => user_name, :password => password) {
@@ -105,11 +96,14 @@ module SsciInc
105
96
  xml.ReferenceId reference_id
106
97
  xml.Reference reference
107
98
  xml.PersonalData {
108
- xml.EmailAddress email_address
109
- xml.Telephone telephone
110
- xml.parent << name.as_xml
99
+ xml.PersonName {
100
+ xml.GivenName given_name
101
+ xml.MiddleName middle_name if middle_name.present?
102
+ xml.FamilyName family_name
103
+ xml.Affix affix if affix.present?
104
+ }
111
105
  if aliases.any?
112
- xml.Aliases {
106
+ xml.AliasNames {
113
107
  aliases.each do |a|
114
108
  xml.parent << a.as_xml
115
109
  end
@@ -117,26 +111,25 @@ module SsciInc
117
111
  end
118
112
  xml.DemographicDetail {
119
113
  xml.Ssn ssn
120
- xml.DateOfBirth date_of_birth
114
+ xml.DateOfBirth date_of_birth
121
115
  } # DemographicDetail
122
116
  xml.AddressSummary {
123
117
  xml.CountryCode country_code == "Canada" ? "CA" : "US"
124
118
  xml.PostalCode postal_code
125
119
  xml.Region region
126
120
  xml.Municipality municipality
127
- xml.AddressLine street_name
121
+ xml.AddressLine address_line
128
122
  } # AddressSummary
123
+ xml.SpecialRequestInfo {
124
+ xml.ApplicantPhone telephone
125
+ xml.ApplicantEmail email_address
126
+ }
129
127
  } # PersonalData
130
128
  xml.Screenings {
131
129
  init_default_screenings if use_defaults
132
130
  @screenings.each do |s|
133
131
  xml.parent << s.as_xml
134
132
  end
135
- additional_items.each do |k,v|
136
- xml.AdditionalItems(:type => "x:#{k}") {
137
- xml.CDATA v
138
- }
139
- end
140
133
  } # Screenings
141
134
  } # BackgroundSearchPackage
142
135
  } # BackgroundCheck
@@ -216,10 +209,8 @@ module SsciInc
216
209
  end
217
210
 
218
211
  def init_default_screenings
219
- @screenings = [Screening::Credit.new,
220
- Screening::Criminal.new(qualifier: "county", region: region, county: county, court_type: COURT_TYPES[:upper_lower_civil]),
221
- Screening::Criminal.new(qualifier: "county", region: region, county: county, court_type: COURT_TYPES[:felony_misdemeanor]),
222
- Screening::Criminal.new(qualifier: "county", region: region, county: "MIDDLE DISTRICT", court_type: COURT_TYPES[:federal])]
212
+ @screenings = [Screening::Social.new,
213
+ Screening::Other.new(qualifier: 'US Crim / Sex Offender Search')]
223
214
  end
224
215
 
225
216
  end
@@ -24,7 +24,7 @@ module SsciInc
24
24
  @password = document.at("//@password").try(:value)
25
25
  @reference_id = document.at("//ReferenceId").try(:text)
26
26
  @reference = document.at("//Reference").try(:text)
27
- @order_id = document.at("//OrderId").try(:text)
27
+ @order_id = document.at("//Receipt").try(:text)
28
28
  @order_status = document.at("//OrderStatus").try(:text)
29
29
 
30
30
  # errors
@@ -0,0 +1,16 @@
1
+ module SsciInc
2
+ module Screening
3
+ class Other
4
+ include Screening::Model
5
+
6
+ attr_accessor :qualifier
7
+
8
+ def as_xml
9
+ builder(:type => "other", :qualifier => qualifier) do |xml|
10
+ xml.OtherSearchCriteria "Ordered through LinXml"
11
+ end
12
+ end
13
+
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,14 @@
1
+ module SsciInc
2
+ module Screening
3
+ class Social
4
+ include Screening::Model
5
+
6
+ def as_xml
7
+ builder(:type => "socialtrace") do |xml|
8
+ xml.OrderSocialTrace "YES"
9
+ end
10
+ end
11
+
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,3 @@
1
1
  module SsciInc
2
- VERSION = '0.1.17'
2
+ VERSION = '0.1.18'
3
3
  end
data/lib/ssci_inc.rb CHANGED
@@ -12,4 +12,6 @@ require 'ssci_inc/screening/model'
12
12
  require 'ssci_inc/screening/credit'
13
13
  require 'ssci_inc/screening/criminal'
14
14
  require 'ssci_inc/screening/eviction'
15
+ require 'ssci_inc/screening/other'
15
16
  require 'ssci_inc/screening/person_search'
17
+ require 'ssci_inc/screening/social'
data/test/test_helper.rb CHANGED
@@ -48,73 +48,70 @@ class Test::Unit::TestCase
48
48
  TEST_HASH = {
49
49
  :user_name => "username",
50
50
  :password => "password",
51
- :type => "My Package",
52
51
  :reference_id => 112233,
53
52
  :reference => "ABC Company Inc.",
54
53
  :given_name => "HANK",
55
54
  :family_name => "MESS",
56
- :ssn => "333-22-1111",
55
+ :ssn => "333221111",
57
56
  :date_of_birth => "1960-01-01",
58
57
  :country_code => "US",
59
58
  :postal_code => "60750",
60
59
  :region => "IL",
61
60
  :municipality => "FANTASY ISLAND",
62
- :address_line => 899,
63
- :street_name => "LINCOLN RD",
64
- :postback_url => "http://127.0.0.1/listen.php",
65
- :postback_username => "user",
66
- :postback_password => "secret",
61
+ :address_line => "899 LINCOLN RD",
67
62
  :use_defaults => true
68
63
  }
69
64
 
70
- TEST_ERROR_RESPONSE = %Q{
71
- <BackgroundReports>
72
- <BackgroundReportPackage>
73
- <ReferenceId>some_id_value</ReferenceId>
74
- <Reference>ABC Company Inc.</Reference>
75
- <ScreeningStatus>
76
- <OrderStatus>x:error</OrderStatus>
77
- </ScreeningStatus>
78
- <ErrorReport>
79
- <ErrorCode>4</ErrorCode>
80
- <ErrorDescription>Invalid username and/or password.</ErrorDescription>
81
- </ErrorReport>
82
- </BackgroundReportPackage>
83
- </BackgroundReports>
84
- }
65
+ # TEST_ERROR_RESPONSE = %Q{
66
+ # <BackgroundReports>
67
+ # <BackgroundReportPackage>
68
+ # <ReferenceId>some_id_value</ReferenceId>
69
+ # <Reference>ABC Company Inc.</Reference>
70
+ # <ScreeningStatus>
71
+ # <OrderStatus>x:error</OrderStatus>
72
+ # </ScreeningStatus>
73
+ # <ErrorReport>
74
+ # <ErrorCode>4</ErrorCode>
75
+ # <ErrorDescription>Invalid username and/or password.</ErrorDescription>
76
+ # </ErrorReport>
77
+ # </BackgroundReportPackage>
78
+ # </BackgroundReports>
79
+ # }
85
80
 
86
81
  TEST_PENDING_RESPONSE = %Q{
87
- <BackgroundReports>
88
- <BackgroundReportPackage>
89
- <ReferenceId>some_id_value</ReferenceId>
90
- <Reference>ABC Company Inc.</Reference>
91
- <OrderId>12358</OrderId>
92
- <ScreeningStatus>
93
- <OrderStatus>x:pending</OrderStatus>
94
- </ScreeningStatus>
95
- </BackgroundReportPackage>
96
- </BackgroundReports>
82
+ <VFPData>
83
+ <Response>
84
+ <status>0</status>
85
+ <message>Background Check successfully received and routed for delivery</message>
86
+ <DestSiteIdentifier>some_id_value</DestSiteIdentifier>
87
+ <SourceSiteIdentifier>some_source_value</SourceSiteIdentifier>
88
+ <AcctCode>some_acct_code</AcctCode>
89
+ <BatchID>1</BatchID>
90
+ <Receipt>receipt_id</Receipt>
91
+ <datestamp>04/12/17 02:16:10 PM</datestamp>
92
+ </Response>
93
+ </VFPData>
97
94
  }
98
95
 
99
- TEST_CALLBACK_RESPONSE = %Q{
100
- <BackgroundReports userId="username" password="password">
101
- <BackgroundReportPackage>
102
- <ReferenceId>some_id_value</ReferenceId>
103
- <Reference>ABC Company Inc.</Reference>
104
- <OrderId>12358</OrderId>
105
- <ScreeningStatus>
106
- <OrderStatus flag="FALSE">x:ready</OrderStatus>
107
- <ResultStatus>Pass</ResultStatus>
108
- </ScreeningStatus>
109
- <Screenings>
110
- <Screening>
111
- <ScreeningResults type="result" mediaType="html" resultType="report">
112
- <InternetWebAddress>display.php</InternetWebAddress>
113
- </ScreeningResults>
114
- </Screening>
115
- </Screenings>
116
- </BackgroundReportPackage>
117
- </BackgroundReports>
118
- }
96
+ # TEST_CALLBACK_RESPONSE = %Q{
97
+ # <BackgroundReports userId="username" password="password">
98
+ # <BackgroundReportPackage>
99
+ # <ReferenceId>some_id_value</ReferenceId>
100
+ # <Reference>ABC Company Inc.</Reference>
101
+ # <OrderId>12358</OrderId>
102
+ # <ScreeningStatus>
103
+ # <OrderStatus flag="FALSE">x:ready</OrderStatus>
104
+ # <ResultStatus>Pass</ResultStatus>
105
+ # </ScreeningStatus>
106
+ # <Screenings>
107
+ # <Screening>
108
+ # <ScreeningResults type="result" mediaType="html" resultType="report">
109
+ # <InternetWebAddress>display.php</InternetWebAddress>
110
+ # </ScreeningResults>
111
+ # </Screening>
112
+ # </Screenings>
113
+ # </BackgroundReportPackage>
114
+ # </BackgroundReports>
115
+ # }
119
116
 
120
117
  end
@@ -8,7 +8,7 @@ module SsciInc
8
8
  a.given_name = "Steve"
9
9
  a.family_name = "Jobs"
10
10
  end
11
- request.criminal_county_screen do |screen|
11
+ request.criminal_screen do |screen|
12
12
  screen.region = "WA"
13
13
  screen.county = "KING"
14
14
  end
@@ -23,9 +23,8 @@ module SsciInc
23
23
  # the document that matches this name and value
24
24
  assert_xml_attr_equal root_node, :user_name, :userId
25
25
  assert_xml_attr_equal root_node, :password
26
- assert_xml_attr_equal root_node, :ssn_country_code, :countryCode
27
- assert_xml_attr_equal root_node, :issuing_authority, :issuingAuthority
28
26
 
27
+ assert_xml_text_equal root_node, :ssn
29
28
  assert_xml_text_equal root_node, :reference_id
30
29
  assert_xml_text_equal root_node, :reference
31
30
  assert_xml_text_equal root_node, :email_address
@@ -33,7 +32,6 @@ module SsciInc
33
32
  assert_xml_text_equal root_node, :given_name
34
33
  assert_xml_text_equal root_node, :middle_name
35
34
  assert_xml_text_equal root_node, :family_name
36
- assert_xml_text_equal root_node, :government_id
37
35
  assert_xml_text_equal root_node, :date_of_birth
38
36
  assert_xml_text_equal root_node, :country_code
39
37
  assert_xml_text_equal root_node, :postal_code
@@ -42,22 +40,13 @@ module SsciInc
42
40
  assert_xml_text_equal root_node, :address_line
43
41
  assert_xml_text_equal root_node, :street_name
44
42
 
45
- item_nodes = root_node.xpath("//AdditionalItems")
46
- subject.additional_items.each do |k,v|
47
- next if v.nil?
48
- attr_name = "x:#{k}"
49
- item_node = item_nodes.at("[@type='#{attr_name}']")
50
- assert_not_nil item_node
51
- assert_equal v.to_s, item_node.at(".//Text").try(:text)
52
- end
43
+ social_trace = root_node.at("//Screening//OrderSocialTrace").text
44
+ other_search_critera = root_node.at("//Screening//OtherSearchCriteria").text
45
+ assert_equal "YES", social_trace
46
+ assert_equal "Ordered through LinXml", other_search_critera
53
47
 
54
- region = root_node.at("//Screening//Region").text
55
- county = root_node.at("//Screening//County").text
56
- assert_equal "WA", region
57
- assert_equal "KING", county
58
-
59
- alias_given_name = root_node.at("//Aliases//PersonName//GivenName").text
60
- alias_family_name = root_node.at("//Aliases//PersonName//FamilyName").text
48
+ alias_given_name = root_node.at("//AliasNames//PersonName//GivenName").text
49
+ alias_family_name = root_node.at("//AliasNames//PersonName//FamilyName").text
61
50
  assert_equal "Steve", alias_given_name
62
51
  assert_equal "Jobs", alias_family_name
63
52
  end
@@ -80,9 +69,8 @@ module SsciInc
80
69
  should_have_attr_accessor :action, :type, :reference_id, :reference
81
70
  should_have_attr_accessor :email_address, :telephone
82
71
  should_have_attr_accessor :given_name, :middle_name, :family_name
83
- should_have_attr_accessor :government_id, :ssn_country_code,
84
- :issuing_authority, :date_of_birth, :country_code, :postal_code, :region,
85
- :municipality, :address_line, :street_name
72
+ should_have_attr_accessor :ssn, :date_of_birth, :country_code, :postal_code, :region, :municipality,
73
+ :address_line, :street_name
86
74
  should_have_attr_accessor :use_defaults
87
75
  should_have_attr_accessor *Request::ADDITIONAL_ITEMS
88
76
 
@@ -2,66 +2,62 @@ require 'test_helper'
2
2
 
3
3
  module SsciInc
4
4
  class ResponseTest < Test::Unit::TestCase
5
- subject { Response.new(TEST_ERROR_RESPONSE) }
6
-
7
- should_have_attr_reader :user_id, :password, :reference_id,
8
- :reference, :order_id, :order_status
9
- should_have_attr_reader :error_code, :error_description
10
- should_have_attr_reader :result_status,
11
- :order_status_flag,
12
- :screening_results_type,
13
- :screening_results_media_type,
14
- :screening_results_result_type,
15
- :result_url
16
- should_have_attr_reader :data
5
+ # subject { Response.new(TEST_ERROR_RESPONSE) }
6
+ #
7
+ # should_have_attr_reader :user_id, :password, :reference_id,
8
+ # :reference, :order_id, :order_status
9
+ # should_have_attr_reader :error_code, :error_description
10
+ # should_have_attr_reader :result_status,
11
+ # :order_status_flag,
12
+ # :screening_results_type,
13
+ # :screening_results_media_type,
14
+ # :screening_results_result_type,
15
+ # :result_url
16
+ # should_have_attr_reader :data
17
17
 
18
18
  context "#new" do
19
- context "error response" do
20
- subject { Response.new(TEST_ERROR_RESPONSE) }
21
-
22
- should "have populated error attributes" do
23
- assert_equal "x:error", subject.order_status
24
- assert_equal "4", subject.error_code
25
- assert_equal "Invalid username and/or password.",
26
- subject.error_description
27
-
28
- assert_equal "some_id_value", subject.reference_id
29
- assert_equal "ABC Company Inc.", subject.reference
30
- end
31
- end
19
+ # context "error response" do
20
+ # subject { Response.new(TEST_ERROR_RESPONSE) }
21
+ #
22
+ # should "have populated error attributes" do
23
+ # assert_equal "x:error", subject.order_status
24
+ # assert_equal "4", subject.error_code
25
+ # assert_equal "Invalid username and/or password.",
26
+ # subject.error_description
27
+ #
28
+ # assert_equal "some_id_value", subject.reference_id
29
+ # assert_equal "ABC Company Inc.", subject.reference
30
+ # end
31
+ # end
32
32
 
33
33
  context "pending response" do
34
34
  subject { Response.new(TEST_PENDING_RESPONSE) }
35
35
 
36
- should "have populated order status" do
37
- assert_equal "x:pending", subject.order_status
38
- assert_equal "12358", subject.order_id
39
-
40
- assert_equal "some_id_value", subject.reference_id
41
- assert_equal "ABC Company Inc.", subject.reference
36
+ should "have populated order id" do
37
+ assert_equal "receipt_id", subject.order_id
42
38
  end
43
39
  end
44
40
 
45
- context "callback response" do
46
- subject { Response.new(TEST_CALLBACK_RESPONSE) }
47
-
48
- should "have a result status and result info" do
49
- assert_equal "x:ready", subject.order_status
50
- assert_equal "Pass", subject.result_status
51
- assert_equal "FALSE", subject.order_status_flag
52
- assert_equal "result", subject.screening_results_type
53
- assert_equal "html", subject.screening_results_media_type
54
- assert_equal "report", subject.screening_results_result_type
55
- assert_equal "display.php", subject.result_url
56
-
57
- assert_equal "username", subject.user_id
58
- assert_equal "password", subject.password
59
-
60
- assert_equal "12358", subject.order_id
61
- assert_equal "some_id_value", subject.reference_id
62
- assert_equal "ABC Company Inc.", subject.reference
63
- end
64
- end
41
+ # context "callback response" do
42
+ # subject { Response.new(TEST_CALLBACK_RESPONSE) }
43
+ #
44
+ # should "have a result status and result info" do
45
+ # assert_equal "x:ready", subject.order_status
46
+ # assert_equal "Pass", subject.result_status
47
+ # assert_equal "FALSE", subject.order_status_flag
48
+ # assert_equal "result", subject.screening_results_type
49
+ # assert_equal "html", subject.screening_results_media_type
50
+ # assert_equal "report", subject.screening_results_result_type
51
+ # assert_equal "display.php", subject.result_url
52
+ #
53
+ # assert_equal "username", subject.user_id
54
+ # assert_equal "password", subject.password
55
+ #
56
+ # assert_equal "12358", subject.order_id
57
+ # assert_equal "some_id_value", subject.reference_id
58
+ # assert_equal "ABC Company Inc.", subject.reference
59
+ # end
60
+ # end
65
61
  end
66
62
 
67
63
  end
@@ -4,7 +4,6 @@ module SsciInc
4
4
  module Screening
5
5
  class CreditTest < Test::Unit::TestCase
6
6
 
7
- should_have_attr_accessor :score, :fraud, :vendor
8
7
  should_call_builder_with(:type => "credit")
9
8
 
10
9
  end
@@ -2,9 +2,10 @@ require 'test_helper'
2
2
 
3
3
  module SsciInc
4
4
  module Screening
5
- class CriminalSecurityTest < Test::Unit::TestCase
5
+ class CriminalTest < Test::Unit::TestCase
6
6
 
7
- should_call_builder_with(:type => "criminal", :qualifier => "security")
7
+ should_have_attr_accessor :qualifier, :region, :county, :court_type
8
+ should_call_builder_with(:type => "criminal", :qualifier => nil)
8
9
 
9
10
  end
10
11
  end
@@ -0,0 +1,12 @@
1
+ require 'test_helper'
2
+
3
+ module SsciInc
4
+ module Screening
5
+ class OtherTest < Test::Unit::TestCase
6
+
7
+ should_have_attr_accessor :qualifier
8
+ should_call_builder_with(:type => "other", :qualifier => nil)
9
+
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,11 @@
1
+ require 'test_helper'
2
+
3
+ module SsciInc
4
+ module Screening
5
+ class SocialTest < Test::Unit::TestCase
6
+
7
+ should_call_builder_with(:type => "socialtrace")
8
+
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssci_inc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Alme
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -170,23 +170,22 @@ files:
170
170
  - lib/ssci_inc/screening/criminal.rb
171
171
  - lib/ssci_inc/screening/eviction.rb
172
172
  - lib/ssci_inc/screening/model.rb
173
+ - lib/ssci_inc/screening/other.rb
173
174
  - lib/ssci_inc/screening/person_search.rb
175
+ - lib/ssci_inc/screening/social.rb
174
176
  - lib/ssci_inc/version.rb
175
177
  - ssci_inc.gemspec
176
- - test/integration/initial_request_test.rb
177
178
  - test/test-updated.xml
178
179
  - test/test_helper.rb
179
180
  - test/unit/request_test.rb
180
181
  - test/unit/response_test.rb
181
- - test/unit/screening/civil_county_test.rb
182
182
  - test/unit/screening/credit_test.rb
183
- - test/unit/screening/criminal_county_test.rb
184
- - test/unit/screening/criminal_federal_test.rb
185
- - test/unit/screening/criminal_security_test.rb
186
- - test/unit/screening/criminal_state_test.rb
183
+ - test/unit/screening/criminal_test.rb
187
184
  - test/unit/screening/eviction_test.rb
188
185
  - test/unit/screening/model_test.rb
186
+ - test/unit/screening/other_test.rb
189
187
  - test/unit/screening/person_search_test.rb
188
+ - test/unit/screening/social_test.rb
190
189
  homepage: ''
191
190
  licenses: []
192
191
  metadata: {}
@@ -211,17 +210,14 @@ signing_key:
211
210
  specification_version: 4
212
211
  summary: Submit background checks to SSCI, Inc
213
212
  test_files:
214
- - test/integration/initial_request_test.rb
215
213
  - test/test-updated.xml
216
214
  - test/test_helper.rb
217
215
  - test/unit/request_test.rb
218
216
  - test/unit/response_test.rb
219
- - test/unit/screening/civil_county_test.rb
220
217
  - test/unit/screening/credit_test.rb
221
- - test/unit/screening/criminal_county_test.rb
222
- - test/unit/screening/criminal_federal_test.rb
223
- - test/unit/screening/criminal_security_test.rb
224
- - test/unit/screening/criminal_state_test.rb
218
+ - test/unit/screening/criminal_test.rb
225
219
  - test/unit/screening/eviction_test.rb
226
220
  - test/unit/screening/model_test.rb
221
+ - test/unit/screening/other_test.rb
227
222
  - test/unit/screening/person_search_test.rb
223
+ - test/unit/screening/social_test.rb
@@ -1,21 +0,0 @@
1
- require 'test_helper'
2
-
3
- module SsciInc
4
- class InitialRequestTest < Test::Unit::TestCase
5
-
6
- context "#submit" do
7
- context "with no credentials" do
8
- subject { Request.new(user_name: 'test') }
9
-
10
- should "get an error response" do
11
- response = subject.submit
12
- assert_equal "x:error", response.order_status
13
- assert_equal "120", response.error_code
14
- assert_equal "Invalid login transaction. Bad credentials.",
15
- response.error_description
16
- end
17
- end
18
- end
19
-
20
- end
21
- end
@@ -1,12 +0,0 @@
1
- require 'test_helper'
2
-
3
- module SsciInc
4
- module Screening
5
- class CivilCountyTest < Test::Unit::TestCase
6
-
7
- should_have_attr_accessor :region, :county
8
- should_call_builder_with(:type => "civil", :qualifier => "county")
9
-
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- require 'test_helper'
2
-
3
- module SsciInc
4
- module Screening
5
- class CriminalCountyTest < Test::Unit::TestCase
6
-
7
- should_have_attr_accessor :region, :county
8
- should_call_builder_with(:type => "criminal", :qualifier => "county")
9
-
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- require 'test_helper'
2
-
3
- module SsciInc
4
- module Screening
5
- class CriminalFederalTest < Test::Unit::TestCase
6
-
7
- should_have_attr_accessor :region, :district
8
- should_call_builder_with(:type => "criminal", :qualifier => "county")
9
-
10
- end
11
- end
12
- end
@@ -1,12 +0,0 @@
1
- require 'test_helper'
2
-
3
- module SsciInc
4
- module Screening
5
- class CriminalStateTest < Test::Unit::TestCase
6
-
7
- should_have_attr_accessor :region
8
- should_call_builder_with(:type => "criminal", :qualifier => "statewide")
9
-
10
- end
11
- end
12
- end