creditsafe 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3f7e899ff7ea1566d2a958e2ebb966971f49af3
4
- data.tar.gz: a9eca4831066ac57b6c67199d8d34898c795194c
3
+ metadata.gz: 573855f9d450030239bbaec2fbd740d8b134a30b
4
+ data.tar.gz: e0060a5aadda143a49424f4fd0652f14028cfa36
5
5
  SHA512:
6
- metadata.gz: 39c2f54873c5d70bdc66df50c1c44f9813961b888b5b5ed038ebd3b6e5086a7bf8dc2fd7cb195858e45e7f26a4667d19b5ad914e163465c78d26e7e2cc0abd0f
7
- data.tar.gz: 7fc19fcbca0b22f6003f4f44f8f519a93f9ba43b0a67711cccb02dff2dcbadde0d765f1bd654749eef6c75da5cc5ba0156e0007fcde59d06d901e9f9aea52ee6
6
+ metadata.gz: b18ceca81cde0de58544cf6eb152f7cb74c8d14d1870a63a58684351787f149e769a23956abfb053b8167d9d044fe8a64eae628de24ecdaf1301962b234d3c59
7
+ data.tar.gz: 9148bfde20fa5555450efe3481970991790aa09c5bfe81df76c60c022b006821c1ed1d6f6df9d422c82766bcdacb85bdfa14c1b88d8ebb4e1ec6f62bd63ff438
@@ -16,9 +16,3 @@ Style/DotPosition:
16
16
 
17
17
  Style/Documentation:
18
18
  Enabled: false
19
-
20
- Metrics/MethodLength:
21
- Max: 15
22
-
23
- Metrics/ClassLength:
24
- Max: 152
@@ -1,3 +1,11 @@
1
+ ## v0.3.1, 6 January 2017
2
+
3
+ - Suppress password when inspecting client
4
+
5
+ ## v0.3.0, 4 August 2016
6
+
7
+ - Add instrumentation to SOAP requests
8
+
1
9
  ## v0.2.0, 16 March 2016
2
10
 
3
11
  - Subclass `ApiError` to distinguish between different Creditsafe error types
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- creditsafe (0.2.0)
4
+ creditsafe (0.3.1)
5
5
  activesupport (>= 4.2.0)
6
6
  excon (~> 0.45)
7
7
  savon (~> 2.8)
@@ -22,6 +22,8 @@ GEM
22
22
  builder (3.2.2)
23
23
  byebug (9.0.5)
24
24
  coderay (1.1.1)
25
+ compare-xml (0.62)
26
+ nokogiri (~> 1.6)
25
27
  concurrent-ruby (1.0.2)
26
28
  crack (0.4.3)
27
29
  safe_yaml (~> 1.0.0)
@@ -80,7 +82,7 @@ GEM
80
82
  pry-byebug (3.4.0)
81
83
  byebug (~> 9.0)
82
84
  pry (~> 0.10)
83
- rack (1.6.4)
85
+ rack (2.0.1)
84
86
  rainbow (2.1.0)
85
87
  rb-fsevent (0.9.7)
86
88
  rb-inotify (0.9.7)
@@ -140,6 +142,7 @@ PLATFORMS
140
142
 
141
143
  DEPENDENCIES
142
144
  bundler (~> 1.3)
145
+ compare-xml (~> 0.5)
143
146
  creditsafe!
144
147
  guard-rspec (~> 4.5)
145
148
  guard-rubocop (~> 1.2)
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 GoCardless
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -8,6 +8,16 @@ A ruby library for interacting with the
8
8
  Currently, it only partially implements the API to support finding companies by
9
9
  registration number and retrieving company online reports.
10
10
 
11
+ # Installation
12
+
13
+ Install the gem from RubyGems.org by adding the following to your `Gemfile`:
14
+
15
+ ```ruby
16
+ gem 'creditsafe', '~> 0.3.1'
17
+ ```
18
+
19
+ Just run `bundle install` to install the gem and its dependencies.
20
+
11
21
  # Usage
12
22
 
13
23
  Initialise the client with your `username` and `password`.
@@ -53,3 +63,8 @@ client.company_report(creditsafe_id: "GB003/0/07495895")
53
63
  ...
54
64
  }
55
65
  ```
66
+
67
+
68
+ ---
69
+
70
+ GoCardless ♥ open source. If you do too, come [join us](https://gocardless.com/jobs#software-engineer).
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
30
30
  spec.add_development_dependency 'rubocop', '~> 0.37'
31
31
  spec.add_development_dependency 'webmock', '~> 1.20'
32
32
  spec.add_development_dependency 'timecop', '~> 0.8'
33
+ spec.add_development_dependency 'compare-xml', '~> 0.5'
33
34
  end
@@ -5,21 +5,15 @@ require 'excon'
5
5
 
6
6
  require 'creditsafe/errors'
7
7
  require 'creditsafe/messages'
8
+ require 'creditsafe/namespace'
9
+
10
+ require 'creditsafe/request/company_report'
11
+ require 'creditsafe/request/find_company'
8
12
 
9
13
  require 'active_support/notifications'
10
14
 
11
15
  module Creditsafe
12
16
  class Client
13
- XMLNS_OPER = 'oper'
14
- XMLNS_OPER_VAL = 'http://www.creditsafe.com/globaldata/operations'
15
-
16
- XMLNS_DAT = 'dat'
17
- XMLNS_DAT_VAL = 'http://www.creditsafe.com/globaldata/datatypes'
18
-
19
- XMLNS_CRED = 'cred'
20
- XMLNS_CRED_VAL =
21
- 'http://schemas.datacontract.org/2004/07/Creditsafe.GlobalData'
22
-
23
17
  def initialize(username: nil, password: nil, savon_opts: {})
24
18
  raise ArgumentError, "Username must be provided" if username.nil?
25
19
  raise ArgumentError, "Password must be provided" if password.nil?
@@ -30,10 +24,9 @@ module Creditsafe
30
24
  end
31
25
 
32
26
  def find_company(search_criteria = {})
33
- check_search_criteria(search_criteria)
27
+ request = Creditsafe::Request::FindCompany.new(search_criteria)
28
+ response = invoke_soap(:find_companies, request.message)
34
29
 
35
- response = invoke_soap(:find_companies,
36
- find_company_message(search_criteria))
37
30
  companies = response.
38
31
  fetch(:find_companies_response).
39
32
  fetch(:find_companies_result).
@@ -43,10 +36,9 @@ module Creditsafe
43
36
  end
44
37
 
45
38
  def company_report(creditsafe_id, custom_data: nil)
46
- response = invoke_soap(
47
- :retrieve_company_online_report,
48
- retrieve_company_report_message(creditsafe_id, custom_data)
49
- )
39
+ request =
40
+ Creditsafe::Request::CompanyReport.new(creditsafe_id, custom_data)
41
+ response = invoke_soap(:retrieve_company_online_report, request.message)
50
42
 
51
43
  response.
52
44
  fetch(:retrieve_company_online_report_response).
@@ -55,62 +47,11 @@ module Creditsafe
55
47
  fetch(:report)
56
48
  end
57
49
 
58
- private
59
-
60
- def check_search_criteria(search_criteria)
61
- if search_criteria[:country_code].nil?
62
- raise ArgumentError, "country_code is a required search criteria"
63
- end
64
-
65
- if search_criteria[:registration_number].nil?
66
- raise ArgumentError, "registration_number is a required search criteria"
67
- end
68
-
69
- if search_criteria[:city] && search_criteria[:country_code] != 'DE'
70
- raise ArgumentError, "city is only supported for German searches"
71
- end
72
- end
73
-
74
- def find_company_message(provided_criteria)
75
- search_criteria = {
76
- "#{XMLNS_DAT}:RegistrationNumber" =>
77
- provided_criteria[:registration_number]
78
- }
79
-
80
- unless provided_criteria[:city].nil?
81
- search_criteria["#{XMLNS_DAT}:Address"] =
82
- { "#{XMLNS_DAT}:City" => provided_criteria[:city] }
83
- end
84
-
85
- {
86
- "#{XMLNS_OPER}:countries" => {
87
- "#{XMLNS_CRED}:CountryCode" => provided_criteria[:country_code]
88
- },
89
- "#{XMLNS_OPER}:searchCriteria" => search_criteria
90
- }
50
+ def inspect
51
+ "#<#{self.class} @username='#{@username}'>"
91
52
  end
92
53
 
93
- def retrieve_company_report_message(company_id, custom_data)
94
- message = {
95
- "#{XMLNS_OPER}:companyId" => company_id.to_s,
96
- "#{XMLNS_OPER}:reportType" => 'Full',
97
- "#{XMLNS_OPER}:language" => "EN"
98
- }
99
-
100
- unless custom_data.nil?
101
- message["#{XMLNS_OPER}:customData"] = {
102
- "#{XMLNS_DAT}:Entries" => {
103
- "#{XMLNS_DAT}:Entry" => custom_data_entries(custom_data)
104
- }
105
- }
106
- end
107
-
108
- message
109
- end
110
-
111
- def custom_data_entries(custom_data)
112
- custom_data.map { |key, value| { :@key => key, :content! => value } }
113
- end
54
+ private
114
55
 
115
56
  def handle_message_for_response(response)
116
57
  [
@@ -176,12 +117,8 @@ module Creditsafe
176
117
  def build_savon_client
177
118
  options = {
178
119
  env_namespace: 'soapenv',
179
- namespace_identifier: XMLNS_OPER,
180
- namespaces: {
181
- "xmlns:#{XMLNS_OPER}" => XMLNS_OPER_VAL,
182
- "xmlns:#{XMLNS_DAT}" => XMLNS_DAT_VAL,
183
- "xmlns:#{XMLNS_CRED}" => XMLNS_CRED_VAL
184
- },
120
+ namespace_identifier: Creditsafe::Namespace::OPER,
121
+ namespaces: Creditsafe::Namespace::ALL,
185
122
  wsdl: wsdl_path,
186
123
  headers: auth_header,
187
124
  convert_request_keys_to: :none,
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Creditsafe
4
+ module Namespace
5
+ OPER = 'oper'
6
+ OPER_VAL = 'http://www.creditsafe.com/globaldata/operations'
7
+
8
+ DAT = 'dat'
9
+ DAT_VAL = 'http://www.creditsafe.com/globaldata/datatypes'
10
+
11
+ CRED = 'cred'
12
+ CRED_VAL = 'http://schemas.datacontract.org/2004/07/Creditsafe.GlobalData'
13
+
14
+ ALL = {
15
+ "xmlns:#{Creditsafe::Namespace::OPER}" => Creditsafe::Namespace::OPER_VAL,
16
+ "xmlns:#{Creditsafe::Namespace::DAT}" => Creditsafe::Namespace::DAT_VAL,
17
+ "xmlns:#{Creditsafe::Namespace::CRED}" => Creditsafe::Namespace::CRED_VAL
18
+ }.freeze
19
+ end
20
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'creditsafe/namespace'
4
+
5
+ module Creditsafe
6
+ module Request
7
+ class CompanyReport
8
+ def initialize(company_id, custom_data)
9
+ @company_id = company_id
10
+ @custom_data = custom_data
11
+ end
12
+
13
+ def message
14
+ message = {
15
+ "#{Creditsafe::Namespace::OPER}:companyId" => company_id.to_s,
16
+ "#{Creditsafe::Namespace::OPER}:reportType" => 'Full',
17
+ "#{Creditsafe::Namespace::OPER}:language" => "EN"
18
+ }
19
+
20
+ unless custom_data.nil?
21
+ message["#{Creditsafe::Namespace::OPER}:customData"] = {
22
+ "#{Creditsafe::Namespace::DAT}:Entries" => {
23
+ "#{Creditsafe::Namespace::DAT}:Entry" => custom_data_entries
24
+ }
25
+ }
26
+ end
27
+
28
+ message
29
+ end
30
+
31
+ private
32
+
33
+ def custom_data_entries
34
+ custom_data.map { |key, value| { :@key => key, :content! => value } }
35
+ end
36
+
37
+ attr_reader :company_id, :custom_data
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'creditsafe/namespace'
4
+
5
+ module Creditsafe
6
+ module Request
7
+ class FindCompany
8
+ def initialize(search_criteria)
9
+ check_search_criteria(search_criteria)
10
+
11
+ @country_code = search_criteria[:country_code]
12
+ @registration_number = search_criteria[:registration_number]
13
+ @city = search_criteria[:city]
14
+ end
15
+
16
+ def message
17
+ search_criteria = {
18
+ "#{Creditsafe::Namespace::DAT}:RegistrationNumber" =>
19
+ registration_number
20
+ }
21
+
22
+ unless city.nil?
23
+ search_criteria["#{Creditsafe::Namespace::DAT}:Address"] =
24
+ { "#{Creditsafe::Namespace::DAT}:City" => city }
25
+ end
26
+
27
+ {
28
+ "#{Creditsafe::Namespace::OPER}:countries" => {
29
+ "#{Creditsafe::Namespace::CRED}:CountryCode" => country_code
30
+ },
31
+ "#{Creditsafe::Namespace::OPER}:searchCriteria" => search_criteria
32
+ }
33
+ end
34
+
35
+ private
36
+
37
+ attr_reader :country_code, :registration_number, :city
38
+
39
+ def check_search_criteria(search_criteria)
40
+ if search_criteria[:country_code].nil?
41
+ raise ArgumentError, "country_code is a required search criteria"
42
+ end
43
+
44
+ if search_criteria[:registration_number].nil?
45
+ raise ArgumentError,
46
+ "registration_number is a required search criteria"
47
+ end
48
+
49
+ if search_criteria[:city] && search_criteria[:country_code] != 'DE'
50
+ raise ArgumentError, "city is only supported for German searches"
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Creditsafe
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
@@ -8,8 +8,8 @@ URL = 'https://webservices.creditsafe.com/GlobalData/1.3/'\
8
8
 
9
9
  RSpec.describe(Creditsafe::Client) do
10
10
  notifications = []
11
- let(:username) { "b" }
12
- let(:password) { "c" }
11
+ let(:username) { "AzureDiamond" }
12
+ let(:password) { "hunter2" }
13
13
  before(:all) do
14
14
  ActiveSupport::Notifications.subscribe do |*args|
15
15
  notifications << ActiveSupport::Notifications::Event.new(*args)
@@ -105,8 +105,6 @@ RSpec.describe(Creditsafe::Client) do
105
105
  subject do
106
106
  -> { described_class.new(username: username, password: password) }
107
107
  end
108
- let(:username) { "foo" }
109
- let(:password) { "bar" }
110
108
 
111
109
  it { is_expected.to_not raise_error }
112
110
 
@@ -114,11 +112,13 @@ RSpec.describe(Creditsafe::Client) do
114
112
  let(:username) { nil }
115
113
  it { is_expected.to raise_error(ArgumentError) }
116
114
  end
115
+ end
117
116
 
118
- context "without a password" do
119
- let(:password) { nil }
120
- it { is_expected.to raise_error(ArgumentError) }
121
- end
117
+ describe "#inspect" do
118
+ let(:client) { described_class.new(username: username, password: password) }
119
+ subject { client.inspect }
120
+
121
+ it { is_expected.to_not include(password) }
122
122
  end
123
123
 
124
124
  describe '#find_company' do
@@ -134,8 +134,10 @@ RSpec.describe(Creditsafe::Client) do
134
134
  city: city
135
135
  }.reject { |_, v| v.nil? }
136
136
  end
137
- let(:find_company) { client.find_company(search_criteria) }
138
- let(:method_call) { find_company }
137
+
138
+ subject(:find_company) { client.find_company(search_criteria) }
139
+ subject(:method_call) { find_company }
140
+
139
141
  before do
140
142
  stub_request(:post, URL).to_return(
141
143
  body: load_fixture('find-companies-successful.xml'),
@@ -166,6 +168,17 @@ RSpec.describe(Creditsafe::Client) do
166
168
  end
167
169
  end
168
170
 
171
+ it 'requests the company deatils' do
172
+ find_company
173
+ expect(a_request(:post, URL).with do |req|
174
+ expect(CompareXML.equivalent?(
175
+ Nokogiri::XML(req.body),
176
+ load_xml_fixture('find-companies-request.xml'),
177
+ verbose: true
178
+ )).to eq([])
179
+ end).to have_been_made
180
+ end
181
+
169
182
  it 'returns the company details' do
170
183
  expect(find_company).
171
184
  to eq(:name => 'GOCARDLESS LTD',
@@ -265,10 +278,21 @@ RSpec.describe(Creditsafe::Client) do
265
278
  end
266
279
  let(:client) { described_class.new(username: username, password: password) }
267
280
  let(:custom_data) { { foo: "bar", bar: "baz" } }
268
- let(:company_report) do
281
+ subject(:company_report) do
269
282
  client.company_report('GB003/0/07495895', custom_data: custom_data)
270
283
  end
271
- let(:method_call) { company_report }
284
+ subject(:method_call) { company_report }
285
+
286
+ it 'requests the company details' do
287
+ company_report
288
+ expect(a_request(:post, URL).with do |req|
289
+ expect(CompareXML.equivalent?(
290
+ Nokogiri::XML(req.body),
291
+ load_xml_fixture('company-report-request.xml'),
292
+ verbose: true
293
+ )).to eq([])
294
+ end).to have_been_made
295
+ end
272
296
 
273
297
  it 'returns the company details' do
274
298
  expect(company_report).to include(:company_summary)
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oper="http://www.creditsafe.com/globaldata/operations" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="http://www.creditsafe.com/globaldata/datatypes" xmlns:cred="http://schemas.datacontract.org/2004/07/Creditsafe.GlobalData"><soapenv:Body><oper:RetrieveCompanyOnlineReport><oper:companyId>GB003/0/07495895</oper:companyId><oper:reportType>Full</oper:reportType><oper:language>EN</oper:language><oper:customData><dat:Entries><dat:Entry key="foo">bar</dat:Entry><dat:Entry key="bar">baz</dat:Entry></dat:Entries></oper:customData></oper:RetrieveCompanyOnlineReport></soapenv:Body></soapenv:Envelope>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oper="http://www.creditsafe.com/globaldata/operations" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="http://www.creditsafe.com/globaldata/datatypes" xmlns:cred="http://schemas.datacontract.org/2004/07/Creditsafe.GlobalData"><soapenv:Body><oper:FindCompanies><oper:countries><cred:CountryCode>GB</cred:CountryCode></oper:countries><oper:searchCriteria><dat:RegistrationNumber>RN123</dat:RegistrationNumber></oper:searchCriteria></oper:FindCompanies></soapenv:Body></soapenv:Envelope>
@@ -2,6 +2,7 @@
2
2
  require 'webmock/rspec'
3
3
  require 'nokogiri'
4
4
  require 'rspec/its'
5
+ require 'compare-xml'
5
6
 
6
7
  def load_fixture(name)
7
8
  File.read(File.join(File.dirname(__FILE__), 'fixtures', name))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creditsafe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless Engineering
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0.8'
167
+ - !ruby/object:Gem::Dependency
168
+ name: compare-xml
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.5'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.5'
167
181
  description: Ruby client for the Creditsafe SOAP API
168
182
  email:
169
183
  - engineering@gocardless.com
@@ -180,6 +194,7 @@ files:
180
194
  - Gemfile
181
195
  - Gemfile.lock
182
196
  - Guardfile
197
+ - LICENSE.txt
183
198
  - README.md
184
199
  - circle.yml
185
200
  - creditsafe.gemspec
@@ -188,16 +203,21 @@ files:
188
203
  - lib/creditsafe/client.rb
189
204
  - lib/creditsafe/errors.rb
190
205
  - lib/creditsafe/messages.rb
206
+ - lib/creditsafe/namespace.rb
207
+ - lib/creditsafe/request/company_report.rb
208
+ - lib/creditsafe/request/find_company.rb
191
209
  - lib/creditsafe/version.rb
192
210
  - spec/creditsafe/client_spec.rb
193
211
  - spec/creditsafe/messages_spec.rb
194
212
  - spec/fixtures/company-report-not-found.xml
213
+ - spec/fixtures/company-report-request.xml
195
214
  - spec/fixtures/company-report-successful.xml
196
215
  - spec/fixtures/error-fault.xml
197
216
  - spec/fixtures/error-invalid-credentials.html
198
217
  - spec/fixtures/find-companies-error-no-text.xml
199
218
  - spec/fixtures/find-companies-error.xml
200
219
  - spec/fixtures/find-companies-none-found.xml
220
+ - spec/fixtures/find-companies-request.xml
201
221
  - spec/fixtures/find-companies-successful-multi.xml
202
222
  - spec/fixtures/find-companies-successful.xml
203
223
  - spec/spec_helper.rb
@@ -228,12 +248,14 @@ test_files:
228
248
  - spec/creditsafe/client_spec.rb
229
249
  - spec/creditsafe/messages_spec.rb
230
250
  - spec/fixtures/company-report-not-found.xml
251
+ - spec/fixtures/company-report-request.xml
231
252
  - spec/fixtures/company-report-successful.xml
232
253
  - spec/fixtures/error-fault.xml
233
254
  - spec/fixtures/error-invalid-credentials.html
234
255
  - spec/fixtures/find-companies-error-no-text.xml
235
256
  - spec/fixtures/find-companies-error.xml
236
257
  - spec/fixtures/find-companies-none-found.xml
258
+ - spec/fixtures/find-companies-request.xml
237
259
  - spec/fixtures/find-companies-successful-multi.xml
238
260
  - spec/fixtures/find-companies-successful.xml
239
261
  - spec/spec_helper.rb