defra_ruby_mocks 1.4.1 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,17 +30,7 @@ module DefraRubyMocks
30
30
 
31
31
  let(:order) { double(:order, order_code: order_code, total_amount: order_value) }
32
32
 
33
- let(:mac) do
34
- data = [
35
- order_key,
36
- order_value,
37
- "GBP",
38
- payment_status,
39
- mac_secret
40
- ]
41
-
42
- Digest::MD5.hexdigest(data.join).to_s
43
- end
33
+ let(:mac) { Digest::MD5.hexdigest(mac_data.join).to_s }
44
34
 
45
35
  let(:query_string) do
46
36
  [
@@ -53,15 +43,27 @@ module DefraRubyMocks
53
43
  ].join("&")
54
44
  end
55
45
 
56
- let(:args) { { success_url: success_url, failure_url: failure_url } }
46
+ let(:args) do
47
+ {
48
+ success_url: success_url,
49
+ failure_url: failure_url,
50
+ pending_url: pending_url,
51
+ cancel_url: cancel_url,
52
+ error_url: error_url
53
+ }
54
+ end
57
55
 
58
56
  describe ".run" do
59
57
  context "when the request comes from the waste-carriers-front-office" do
60
58
  let(:success_url) { "http://example.com/fo/#{reference}/worldpay/success" }
61
59
  let(:failure_url) { "http://example.com/fo/#{reference}/worldpay/failure" }
60
+ let(:pending_url) { "http://example.com/fo/#{reference}/worldpay/pending" }
61
+ let(:cancel_url) { "http://example.com/fo/#{reference}/worldpay/cancel" }
62
+ let(:error_url) { "http://example.com/fo/#{reference}/worldpay/error" }
62
63
 
63
64
  context "and is valid" do
64
65
  let(:relation) { double(:relation, first: registration) }
66
+ let(:mac_data) { [order_key, order_value, "GBP", payment_status, mac_secret] }
65
67
 
66
68
  it "can extract the reference from the `success_url`" do
67
69
  expect(described_class.run(args).reference).to eq(reference)
@@ -71,11 +73,12 @@ module DefraRubyMocks
71
73
  expect(described_class.run(args).order_key).to eq(order_key)
72
74
  end
73
75
 
74
- it "can generate a valid mac" do
75
- expect(described_class.run(args).mac).to eq(mac)
76
- end
77
-
78
76
  context "and is for a successful payment" do
77
+ it "can generate a valid mac" do
78
+ puts "Test data #{mac_data.join}"
79
+ expect(described_class.run(args).mac).to eq(mac)
80
+ end
81
+
79
82
  it "returns a url in the expected format" do
80
83
  expected_response_url = "#{success_url}?#{query_string}"
81
84
 
@@ -87,6 +90,10 @@ module DefraRubyMocks
87
90
  let(:payment_status) { :REFUSED }
88
91
  let(:company_name) { "Reject for the thing" }
89
92
 
93
+ it "can generate a valid mac" do
94
+ expect(described_class.run(args).mac).to eq(mac)
95
+ end
96
+
90
97
  it "returns a url in the expected format" do
91
98
  expected_response_url = "#{failure_url}?#{query_string}"
92
99
 
@@ -95,21 +102,76 @@ module DefraRubyMocks
95
102
  end
96
103
 
97
104
  context "and is for a stuck payment" do
105
+ let(:payment_status) { :STUCK }
98
106
  let(:company_name) { "Give me a stuck thing" }
99
107
 
108
+ it "can generate a valid mac" do
109
+ expect(described_class.run(args).mac).to eq(mac)
110
+ end
111
+
100
112
  it "returns a status of :STUCK" do
101
113
  expect(described_class.run(args).status).to eq(:STUCK)
102
114
  end
103
115
  end
116
+
117
+ context "and is for a pending payment" do
118
+ let(:payment_status) { :SENT_FOR_AUTHORISATION }
119
+ let(:company_name) { "Pending for the thing" }
120
+
121
+ it "can generate a valid mac" do
122
+ expect(described_class.run(args).mac).to eq(mac)
123
+ end
124
+
125
+ it "returns a url in the expected format" do
126
+ expected_response_url = "#{pending_url}?#{query_string}"
127
+
128
+ expect(described_class.run(args).url).to eq(expected_response_url)
129
+ end
130
+ end
131
+
132
+ context "and is for a cancelled payment" do
133
+ let(:payment_status) { :CANCELLED }
134
+ let(:company_name) { "Cancel the thing" }
135
+ let(:mac_data) { [order_key, order_value, "GBP", mac_secret] }
136
+
137
+ it "can generate a valid mac" do
138
+ expect(described_class.run(args).mac).to eq(mac)
139
+ end
140
+
141
+ it "returns a url in the expected format" do
142
+ expected_response_url = "#{cancel_url}?#{query_string}"
143
+
144
+ expect(described_class.run(args).url).to eq(expected_response_url)
145
+ end
146
+ end
147
+
148
+ context "and is for an errored payment" do
149
+ let(:payment_status) { :ERROR }
150
+ let(:company_name) { "Error the thing" }
151
+
152
+ it "can generate a valid mac" do
153
+ expect(described_class.run(args).mac).to eq(mac)
154
+ end
155
+
156
+ it "returns a url in the expected format" do
157
+ expected_response_url = "#{error_url}?#{query_string}"
158
+
159
+ expect(described_class.run(args).url).to eq(expected_response_url)
160
+ end
161
+ end
104
162
  end
105
163
  end
106
164
 
107
165
  context "when the request comes from the waste-carriers-frontend" do
108
166
  let(:success_url) { "http://example.com/your-registration/#{reference}/worldpay/success/54321/NEWREG?locale=en" }
109
167
  let(:failure_url) { "http://example.com/your-registration/#{reference}/worldpay/failure/54321/NEWREG?locale=en" }
168
+ let(:pending_url) { "http://example.com/your-registration/#{reference}/worldpay/pending/54321/NEWREG?locale=en" }
169
+ let(:cancel_url) { "http://example.com/your-registration/#{reference}/worldpay/cancel/54321/NEWREG?locale=en" }
170
+ let(:error_url) { "http://example.com/your-registration/#{reference}/worldpay/error/54321/NEWREG?locale=en" }
110
171
 
111
172
  context "and is valid" do
112
173
  let(:relation) { double(:relation, first: registration) }
174
+ let(:mac_data) { [order_key, order_value, "GBP", payment_status, mac_secret] }
113
175
 
114
176
  it "can extract the reference from the `success_url`" do
115
177
  expect(described_class.run(args).reference).to eq(reference)
@@ -119,11 +181,11 @@ module DefraRubyMocks
119
181
  expect(described_class.run(args).order_key).to eq(order_key)
120
182
  end
121
183
 
122
- it "can generate a valid mac" do
123
- expect(described_class.run(args).mac).to eq(mac)
124
- end
125
-
126
184
  context "and is for a successful payment" do
185
+ it "can generate a valid mac" do
186
+ expect(described_class.run(args).mac).to eq(mac)
187
+ end
188
+
127
189
  it "returns a url in the expected format" do
128
190
  expected_response_url = "#{success_url}&#{query_string}"
129
191
 
@@ -135,6 +197,10 @@ module DefraRubyMocks
135
197
  let(:payment_status) { :REFUSED }
136
198
  let(:company_name) { "Reject for the thing" }
137
199
 
200
+ it "can generate a valid mac" do
201
+ expect(described_class.run(args).mac).to eq(mac)
202
+ end
203
+
138
204
  it "returns a url in the expected format" do
139
205
  expected_response_url = "#{failure_url}&#{query_string}"
140
206
 
@@ -143,12 +209,63 @@ module DefraRubyMocks
143
209
  end
144
210
 
145
211
  context "and is for a stuck payment" do
212
+ let(:payment_status) { :STUCK }
146
213
  let(:company_name) { "Give me a stuck thing" }
147
214
 
215
+ it "can generate a valid mac" do
216
+ expect(described_class.run(args).mac).to eq(mac)
217
+ end
218
+
148
219
  it "returns a status of :STUCK" do
149
220
  expect(described_class.run(args).status).to eq(:STUCK)
150
221
  end
151
222
  end
223
+
224
+ context "and is for a pending payment" do
225
+ let(:payment_status) { :SENT_FOR_AUTHORISATION }
226
+ let(:company_name) { "Pending for the thing" }
227
+
228
+ it "can generate a valid mac" do
229
+ expect(described_class.run(args).mac).to eq(mac)
230
+ end
231
+
232
+ it "returns a url in the expected format" do
233
+ expected_response_url = "#{pending_url}&#{query_string}"
234
+
235
+ expect(described_class.run(args).url).to eq(expected_response_url)
236
+ end
237
+ end
238
+
239
+ context "and is for a cancelled payment" do
240
+ let(:payment_status) { :CANCELLED }
241
+ let(:company_name) { "Cancel the thing" }
242
+ let(:mac_data) { [order_key, order_value, "GBP", mac_secret] }
243
+
244
+ it "can generate a valid mac" do
245
+ expect(described_class.run(args).mac).to eq(mac)
246
+ end
247
+
248
+ it "returns a url in the expected format" do
249
+ expected_response_url = "#{cancel_url}&#{query_string}"
250
+
251
+ expect(described_class.run(args).url).to eq(expected_response_url)
252
+ end
253
+ end
254
+
255
+ context "and is for an errored payment" do
256
+ let(:payment_status) { :ERROR }
257
+ let(:company_name) { "Error the thing" }
258
+
259
+ it "can generate a valid mac" do
260
+ expect(described_class.run(args).mac).to eq(mac)
261
+ end
262
+
263
+ it "returns a url in the expected format" do
264
+ expected_response_url = "#{error_url}&#{query_string}"
265
+
266
+ expect(described_class.run(args).url).to eq(expected_response_url)
267
+ end
268
+ end
152
269
  end
153
270
  end
154
271
  end
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,9 @@
4
4
  # This is as per its docs https://github.com/colszowka/simplecov#getting-started
5
5
  require "./spec/support/simplecov"
6
6
 
7
+ require "rails-controller-testing"
8
+ Rails::Controller::Testing.install
9
+
7
10
  # This file was generated by the `rails generate rspec:install` command. Conventionally, all
8
11
  # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
9
12
  # The generated `.rspec` file contains `--require spec_helper` which will cause
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: defra_ruby_mocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.11.1
19
+ version: '6.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.11.1
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sprockets
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +94,34 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rails-controller-testing
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rspec-rails
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - "~>"
115
+ - - ">="
102
116
  - !ruby/object:Gem::Version
103
- version: 3.8.0
117
+ version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - "~>"
122
+ - - ">="
109
123
  - !ruby/object:Gem::Version
110
- version: 3.8.0
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: simplecov
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -144,6 +158,7 @@ files:
144
158
  - app/services/defra_ruby_mocks/worldpay_resource_service.rb
145
159
  - app/services/defra_ruby_mocks/worldpay_response_service.rb
146
160
  - app/views/defra_ruby_mocks/company/not_found.json.erb
161
+ - app/views/defra_ruby_mocks/company/officers.json.erb
147
162
  - app/views/defra_ruby_mocks/company/show.json.erb
148
163
  - app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
149
164
  - app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
@@ -189,7 +204,6 @@ files:
189
204
  - spec/dummy/config/locales/en.yml
190
205
  - spec/dummy/config/routes.rb
191
206
  - spec/dummy/config/secrets.yml
192
- - spec/dummy/log/development.log
193
207
  - spec/dummy/log/test.log
194
208
  - spec/dummy/public/404.html
195
209
  - spec/dummy/public/422.html
@@ -204,6 +218,7 @@ files:
204
218
  - spec/lib/configuration_spec.rb
205
219
  - spec/rails_helper.rb
206
220
  - spec/requests/company_spec.rb
221
+ - spec/requests/officers_spec.rb
207
222
  - spec/requests/worldpay_spec.rb
208
223
  - spec/services/companies_house_service_spec.rb
209
224
  - spec/services/worldpay_payment_service_spec.rb
@@ -237,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
237
252
  - !ruby/object:Gem::Version
238
253
  version: '0'
239
254
  requirements: []
240
- rubygems_version: 3.0.0
255
+ rubygems_version: 3.1.2
241
256
  signing_key:
242
257
  specification_version: 4
243
258
  summary: Defra Ruby on Rails external API mocking engine
@@ -277,12 +292,12 @@ test_files:
277
292
  - spec/dummy/public/500.html
278
293
  - spec/dummy/public/404.html
279
294
  - spec/dummy/log/test.log
280
- - spec/dummy/log/development.log
281
295
  - spec/dummy/README.rdoc
282
296
  - spec/examples.txt
283
297
  - spec/defra_ruby_mocks_spec.rb
284
298
  - spec/requests/company_spec.rb
285
299
  - spec/requests/worldpay_spec.rb
300
+ - spec/requests/officers_spec.rb
286
301
  - spec/support/simplecov.rb
287
302
  - spec/support/pry.rb
288
303
  - spec/support/helpers/helpers.rb
@@ -1,180 +0,0 @@
1
-
2
-
3
- Started GET "/defra_ruby_mocks/worldpay/stuck" for ::1 at 2020-05-22 17:26:24 +0100
4
-
5
- ActionController::RoutingError (No route matches [GET] "/defra_ruby_mocks/worldpay/stuck"):
6
- actionpack (4.2.11.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
7
- actionpack (4.2.11.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
8
- railties (4.2.11.3) lib/rails/rack/logger.rb:38:in `call_app'
9
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `block in call'
10
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
11
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:26:in `tagged'
12
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `tagged'
13
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `call'
14
- actionpack (4.2.11.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
15
- rack (1.6.13) lib/rack/methodoverride.rb:22:in `call'
16
- rack (1.6.13) lib/rack/runtime.rb:18:in `call'
17
- activesupport (4.2.11.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
18
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
19
- actionpack (4.2.11.3) lib/action_dispatch/middleware/static.rb:120:in `call'
20
- rack (1.6.13) lib/rack/sendfile.rb:113:in `call'
21
- railties (4.2.11.3) lib/rails/engine.rb:518:in `call'
22
- railties (4.2.11.3) lib/rails/application.rb:165:in `call'
23
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
24
- rack (1.6.13) lib/rack/content_length.rb:15:in `call'
25
- rack (1.6.13) lib/rack/handler/webrick.rb:88:in `service'
26
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
27
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
28
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
29
-
30
-
31
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
32
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
33
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
34
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (21.4ms)
35
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (12.4ms)
36
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (154.2ms)
37
-
38
-
39
- Started GET "/worldpay/stuck" for ::1 at 2020-05-22 17:26:34 +0100
40
-
41
- ActionController::RoutingError (No route matches [GET] "/worldpay/stuck"):
42
- actionpack (4.2.11.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
43
- actionpack (4.2.11.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
44
- railties (4.2.11.3) lib/rails/rack/logger.rb:38:in `call_app'
45
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `block in call'
46
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
47
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:26:in `tagged'
48
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `tagged'
49
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `call'
50
- actionpack (4.2.11.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
51
- rack (1.6.13) lib/rack/methodoverride.rb:22:in `call'
52
- rack (1.6.13) lib/rack/runtime.rb:18:in `call'
53
- activesupport (4.2.11.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
54
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
55
- actionpack (4.2.11.3) lib/action_dispatch/middleware/static.rb:120:in `call'
56
- rack (1.6.13) lib/rack/sendfile.rb:113:in `call'
57
- railties (4.2.11.3) lib/rails/engine.rb:518:in `call'
58
- railties (4.2.11.3) lib/rails/application.rb:165:in `call'
59
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
60
- rack (1.6.13) lib/rack/content_length.rb:15:in `call'
61
- rack (1.6.13) lib/rack/handler/webrick.rb:88:in `service'
62
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
63
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
64
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
65
-
66
-
67
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (0.9ms)
68
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
69
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
70
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
71
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
72
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (105.5ms)
73
-
74
-
75
- Started GET "/defra_ruby_mocks/worldpay/stuck" for ::1 at 2020-05-22 17:26:55 +0100
76
-
77
- ActionController::RoutingError (No route matches [GET] "/defra_ruby_mocks/worldpay/stuck"):
78
- actionpack (4.2.11.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
79
- actionpack (4.2.11.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
80
- railties (4.2.11.3) lib/rails/rack/logger.rb:38:in `call_app'
81
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `block in call'
82
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
83
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:26:in `tagged'
84
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `tagged'
85
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `call'
86
- actionpack (4.2.11.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
87
- rack (1.6.13) lib/rack/methodoverride.rb:22:in `call'
88
- rack (1.6.13) lib/rack/runtime.rb:18:in `call'
89
- activesupport (4.2.11.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
90
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
91
- actionpack (4.2.11.3) lib/action_dispatch/middleware/static.rb:120:in `call'
92
- rack (1.6.13) lib/rack/sendfile.rb:113:in `call'
93
- railties (4.2.11.3) lib/rails/engine.rb:518:in `call'
94
- railties (4.2.11.3) lib/rails/application.rb:165:in `call'
95
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
96
- rack (1.6.13) lib/rack/content_length.rb:15:in `call'
97
- rack (1.6.13) lib/rack/handler/webrick.rb:88:in `service'
98
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
99
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
100
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
101
-
102
-
103
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.0ms)
104
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.6ms)
105
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
106
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.0ms)
107
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
108
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (93.9ms)
109
-
110
-
111
- Started GET "/worldpay/stuck.html" for ::1 at 2020-05-22 17:27:28 +0100
112
-
113
- ActionController::RoutingError (No route matches [GET] "/worldpay/stuck.html"):
114
- actionpack (4.2.11.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
115
- actionpack (4.2.11.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
116
- railties (4.2.11.3) lib/rails/rack/logger.rb:38:in `call_app'
117
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `block in call'
118
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
119
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:26:in `tagged'
120
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `tagged'
121
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `call'
122
- actionpack (4.2.11.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
123
- rack (1.6.13) lib/rack/methodoverride.rb:22:in `call'
124
- rack (1.6.13) lib/rack/runtime.rb:18:in `call'
125
- activesupport (4.2.11.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
126
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
127
- actionpack (4.2.11.3) lib/action_dispatch/middleware/static.rb:120:in `call'
128
- rack (1.6.13) lib/rack/sendfile.rb:113:in `call'
129
- railties (4.2.11.3) lib/rails/engine.rb:518:in `call'
130
- railties (4.2.11.3) lib/rails/application.rb:165:in `call'
131
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
132
- rack (1.6.13) lib/rack/content_length.rb:15:in `call'
133
- rack (1.6.13) lib/rack/handler/webrick.rb:88:in `service'
134
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
135
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
136
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
137
-
138
-
139
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.1ms)
140
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
141
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
142
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
143
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
144
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (93.9ms)
145
-
146
-
147
- Started GET "/worldpay/stuck" for ::1 at 2020-05-22 17:27:34 +0100
148
-
149
- ActionController::RoutingError (No route matches [GET] "/worldpay/stuck"):
150
- actionpack (4.2.11.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
151
- actionpack (4.2.11.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
152
- railties (4.2.11.3) lib/rails/rack/logger.rb:38:in `call_app'
153
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `block in call'
154
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
155
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:26:in `tagged'
156
- activesupport (4.2.11.3) lib/active_support/tagged_logging.rb:68:in `tagged'
157
- railties (4.2.11.3) lib/rails/rack/logger.rb:20:in `call'
158
- actionpack (4.2.11.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
159
- rack (1.6.13) lib/rack/methodoverride.rb:22:in `call'
160
- rack (1.6.13) lib/rack/runtime.rb:18:in `call'
161
- activesupport (4.2.11.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
162
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
163
- actionpack (4.2.11.3) lib/action_dispatch/middleware/static.rb:120:in `call'
164
- rack (1.6.13) lib/rack/sendfile.rb:113:in `call'
165
- railties (4.2.11.3) lib/rails/engine.rb:518:in `call'
166
- railties (4.2.11.3) lib/rails/application.rb:165:in `call'
167
- rack (1.6.13) lib/rack/lock.rb:17:in `call'
168
- rack (1.6.13) lib/rack/content_length.rb:15:in `call'
169
- rack (1.6.13) lib/rack/handler/webrick.rb:88:in `service'
170
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:140:in `service'
171
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/httpserver.rb:96:in `run'
172
- /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/2.4.0/webrick/server.rb:290:in `block in start_thread'
173
-
174
-
175
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
176
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.5ms)
177
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.2ms)
178
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (0.9ms)
179
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.8ms)
180
- Rendered /Users/acruikshanks/.rbenv/versions/2.4.2/lib/ruby/gems/2.4.0/gems/actionpack-4.2.11.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (96.1ms)