defra_ruby_mocks 1.2.0 → 1.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11c12df8f46d57ee398b846e7b940eabb3ef666f
4
- data.tar.gz: d11d804834f28614a23c4fd6bc486885a9f9bdd9
3
+ metadata.gz: 8c51c15a73b7993b5bbc0d3c15ac48be37739600
4
+ data.tar.gz: e616e6edd8996fa3ba3c02086ed54dce6af97857
5
5
  SHA512:
6
- metadata.gz: 6ecc755e31cf7a746265c1a4f3292b4e037ca7976040cc2350bf5c0ee89e0c630ce7fc3b416319418de7537a8a229b3f6cae80bbadaa700bb951923923087104
7
- data.tar.gz: 8afc6250125e523384ccb27c0e543cd9cdeb0b678a9cf818b63a5bb7c34b458daeaabdd759b8babfd91ac6bd834281968362e34af104f4de3c4145e930483322
6
+ metadata.gz: 4cf7f91d2ed5fdbff3ce987739a4ae41e77e721a4279c67acd9a79de08b9dc836ec21adfd8d15961000531a509c3668f075f6f97a61833ce8339c11cede98680
7
+ data.tar.gz: e9a421b752ec91e6bdc2bd30e11a3867994b2a299515080893392d1c74739e8e6549bbc0cc9da39914e25c0daa12f8f7a5df0e7d63b300206545d6cf26e6c84f
data/README.md CHANGED
@@ -122,6 +122,14 @@ This Worldpay mock replicates those 2 interactions with the following urls
122
122
  - `../worldpay/payments-service`
123
123
  - `../worldpay/dispatcher`
124
124
 
125
+ ##### Refused payments
126
+
127
+ The engine has the ability to also mock Worldpay refusing a payment. To have the mock refuse payment just ensure the registration's company name includes the word `reject` (case doesn't matter).
128
+
129
+ If it does the engine will redirect back to the failure url instead of the success url provided, plus set the payment status to `REFUSED`.
130
+
131
+ This allows us to test how the application handles both successful and unsucessful Worldpay payments.
132
+
125
133
  #### Refunds
126
134
 
127
135
  Requesting a refund from Worldpay is a single step process.
data/Rakefile CHANGED
@@ -25,7 +25,7 @@ Bundler::GemHelper.install_tasks
25
25
  # This is wrapped to prevent an error when rake is called in environments where
26
26
  # rspec may not be available, e.g. production. As such we don't need to handle
27
27
  # the error.
28
- # rubocop:disable Lint/HandleExceptions
28
+ # rubocop:disable Lint/SuppressedException
29
29
  begin
30
30
  require "rspec/core/rake_task"
31
31
 
@@ -35,4 +35,4 @@ begin
35
35
  rescue LoadError
36
36
  # no rspec available
37
37
  end
38
- # rubocop:enable Lint/HandleExceptions
38
+ # rubocop:enable Lint/SuppressedException
@@ -15,8 +15,10 @@ module DefraRubyMocks
15
15
  end
16
16
 
17
17
  def dispatcher
18
- success_url = params[:successURL]
19
- redirect_to WorldpayResponseService.run(success_url)
18
+ redirect_to WorldpayResponseService.run(
19
+ success_url: params[:successURL],
20
+ failure_url: params[:failureURL]
21
+ )
20
22
  rescue StandardError
21
23
  head 500
22
24
  end
@@ -3,12 +3,12 @@
3
3
  module DefraRubyMocks
4
4
  class WorldpayResponseService < BaseService
5
5
 
6
- def run(success_url)
6
+ def run(success_url:, failure_url:)
7
7
  parse_reference(success_url)
8
8
  locate_registration
9
9
  @order = last_order
10
10
 
11
- response_url(success_url)
11
+ response_url(success_url, failure_url)
12
12
  end
13
13
 
14
14
  private
@@ -52,6 +52,10 @@ module DefraRubyMocks
52
52
  @registration.finance_details&.orders&.order_by(dateCreated: :desc)&.first
53
53
  end
54
54
 
55
+ def reject_payment?
56
+ @registration.company_name.downcase.include?("reject")
57
+ end
58
+
55
59
  def order_key
56
60
  [
57
61
  DefraRubyMocks.configuration.worldpay_admin_code,
@@ -76,10 +80,10 @@ module DefraRubyMocks
76
80
  Digest::MD5.hexdigest(data.join).to_s
77
81
  end
78
82
 
79
- def query_string
83
+ def query_string(status)
80
84
  [
81
85
  "orderKey=#{order_key}",
82
- "paymentStatus=AUTHORISED",
86
+ "paymentStatus=#{status}",
83
87
  "paymentAmount=#{order_value}",
84
88
  "paymentCurrency=GBP",
85
89
  "mac=#{generate_mac}",
@@ -87,12 +91,18 @@ module DefraRubyMocks
87
91
  ].join("&")
88
92
  end
89
93
 
90
- def response_url(success_url)
91
- if @url_format == :new
92
- "#{success_url}?#{query_string}"
94
+ def response_url(success_url, failure_url)
95
+ separator = @url_format == :new ? "?" : "&"
96
+
97
+ if reject_payment?
98
+ url = failure_url
99
+ status = "REFUSED"
93
100
  else
94
- "#{success_url}&#{query_string}"
101
+ url = success_url
102
+ status = "AUTHORISED"
95
103
  end
104
+
105
+ [url, separator, query_string(status)].join
96
106
  end
97
107
  end
98
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
@@ -1,479 +0,0 @@
1
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
2
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
3
- Processing by DefraRubyMocks::CompanyController#show as HTML
4
- Parameters: {"id"=>"foo"}
5
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.9ms)
6
- Completed 404 Not Found in 36ms (Views: 36.0ms)
7
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
8
- Processing by DefraRubyMocks::CompanyController#show as HTML
9
- Parameters: {"id"=>"SC247974"}
10
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
11
- Completed 200 OK in 5ms (Views: 5.1ms)
12
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
13
- Processing by DefraRubyMocks::CompanyController#show as HTML
14
- Parameters: {"id"=>"99999999"}
15
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
16
- Completed 404 Not Found in 1ms (Views: 0.6ms)
17
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:10:46 +0000
18
- Processing by DefraRubyMocks::CompanyController#show as HTML
19
- Parameters: {"id"=>"05868270"}
20
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
21
- Completed 200 OK in 2ms (Views: 1.1ms)
22
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
23
- Processing by DefraRubyMocks::CompanyController#show as HTML
24
- Parameters: {"id"=>"99999999"}
25
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.8ms)
26
- Completed 404 Not Found in 31ms (Views: 30.7ms)
27
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
28
- Processing by DefraRubyMocks::CompanyController#show as HTML
29
- Parameters: {"id"=>"SC247974"}
30
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
31
- Completed 200 OK in 5ms (Views: 4.6ms)
32
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
33
- Processing by DefraRubyMocks::CompanyController#show as HTML
34
- Parameters: {"id"=>"foo"}
35
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
36
- Completed 404 Not Found in 1ms (Views: 0.6ms)
37
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
38
- Processing by DefraRubyMocks::CompanyController#show as HTML
39
- Parameters: {"id"=>"05868270"}
40
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
41
- Completed 200 OK in 1ms (Views: 0.5ms)
42
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:13:25 +0000
43
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
44
- Processing by DefraRubyMocks::CompanyController#show as HTML
45
- Parameters: {"id"=>"foo"}
46
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (4.6ms)
47
- Completed 404 Not Found in 37ms (Views: 35.9ms)
48
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
49
- Processing by DefraRubyMocks::CompanyController#show as HTML
50
- Parameters: {"id"=>"SC247974"}
51
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.7ms)
52
- Completed 200 OK in 7ms (Views: 6.6ms)
53
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
54
- Processing by DefraRubyMocks::CompanyController#show as HTML
55
- Parameters: {"id"=>"05868270"}
56
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
57
- Completed 200 OK in 1ms (Views: 0.6ms)
58
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
59
- Processing by DefraRubyMocks::CompanyController#show as HTML
60
- Parameters: {"id"=>"99999999"}
61
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
62
- Completed 404 Not Found in 1ms (Views: 0.4ms)
63
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:06 +0000
64
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
65
- Processing by DefraRubyMocks::CompanyController#show as HTML
66
- Parameters: {"id"=>"99999999"}
67
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
68
- Completed 404 Not Found in 28ms (Views: 27.2ms)
69
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
70
- Processing by DefraRubyMocks::CompanyController#show as HTML
71
- Parameters: {"id"=>"05868270"}
72
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.5ms)
73
- Completed 200 OK in 6ms (Views: 5.4ms)
74
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
75
- Processing by DefraRubyMocks::CompanyController#show as HTML
76
- Parameters: {"id"=>"foo"}
77
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
78
- Completed 404 Not Found in 1ms (Views: 0.6ms)
79
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
80
- Processing by DefraRubyMocks::CompanyController#show as HTML
81
- Parameters: {"id"=>"SC247974"}
82
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
83
- Completed 200 OK in 1ms (Views: 0.5ms)
84
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:16:42 +0000
85
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
86
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
87
- Processing by DefraRubyMocks::CompanyController#show as HTML
88
- Parameters: {"id"=>"99999999"}
89
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.8ms)
90
- Completed 404 Not Found in 36ms (Views: 35.8ms)
91
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
92
- Processing by DefraRubyMocks::CompanyController#show as HTML
93
- Parameters: {"id"=>"SC247974"}
94
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.8ms)
95
- Completed 200 OK in 10ms (Views: 9.0ms)
96
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
97
- Processing by DefraRubyMocks::CompanyController#show as HTML
98
- Parameters: {"id"=>"foo"}
99
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
100
- Completed 404 Not Found in 1ms (Views: 0.8ms)
101
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:17:50 +0000
102
- Processing by DefraRubyMocks::CompanyController#show as HTML
103
- Parameters: {"id"=>"05868270"}
104
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
105
- Completed 200 OK in 1ms (Views: 0.6ms)
106
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
107
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
108
- Processing by DefraRubyMocks::CompanyController#show as HTML
109
- Parameters: {"id"=>"foo"}
110
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
111
- Completed 404 Not Found in 34ms (Views: 33.5ms)
112
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
113
- Processing by DefraRubyMocks::CompanyController#show as HTML
114
- Parameters: {"id"=>"SC247974"}
115
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
116
- Completed 200 OK in 5ms (Views: 4.8ms)
117
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
118
- Processing by DefraRubyMocks::CompanyController#show as HTML
119
- Parameters: {"id"=>"99999999"}
120
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
121
- Completed 404 Not Found in 1ms (Views: 0.5ms)
122
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:31:03 +0000
123
- Processing by DefraRubyMocks::CompanyController#show as HTML
124
- Parameters: {"id"=>"05868270"}
125
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
126
- Completed 200 OK in 1ms (Views: 0.5ms)
127
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
128
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
129
- Processing by DefraRubyMocks::CompanyController#show as HTML
130
- Parameters: {"id"=>"99999999"}
131
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (3.0ms)
132
- Completed 404 Not Found in 30ms (Views: 30.0ms)
133
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
134
- Processing by DefraRubyMocks::CompanyController#show as HTML
135
- Parameters: {"id"=>"05868270"}
136
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
137
- Completed 200 OK in 5ms (Views: 4.5ms)
138
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
139
- Processing by DefraRubyMocks::CompanyController#show as HTML
140
- Parameters: {"id"=>"foo"}
141
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
142
- Completed 404 Not Found in 1ms (Views: 0.5ms)
143
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2019-12-27 17:37:44 +0000
144
- Processing by DefraRubyMocks::CompanyController#show as HTML
145
- Parameters: {"id"=>"SC247974"}
146
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
147
- Completed 200 OK in 1ms (Views: 0.4ms)
148
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
149
- Processing by DefraRubyMocks::CompanyController#show as HTML
150
- Parameters: {"id"=>"05868270"}
151
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.8ms)
152
- Completed 200 OK in 29ms (Views: 28.5ms)
153
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
154
- Processing by DefraRubyMocks::CompanyController#show as HTML
155
- Parameters: {"id"=>"foo"}
156
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
157
- Completed 404 Not Found in 5ms (Views: 4.5ms)
158
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
159
- Processing by DefraRubyMocks::CompanyController#show as HTML
160
- Parameters: {"id"=>"SC247974"}
161
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
162
- Completed 200 OK in 1ms (Views: 0.4ms)
163
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
164
- Processing by DefraRubyMocks::CompanyController#show as HTML
165
- Parameters: {"id"=>"99999999"}
166
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
167
- Completed 404 Not Found in 1ms (Views: 0.4ms)
168
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
169
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
170
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
171
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
172
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
173
- Completed 500 Internal Server Error in 0ms
174
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:42:28 +0000
175
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
176
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
177
- Completed 200 OK in 16ms (Views: 14.8ms)
178
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
179
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
180
- Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
181
- Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
182
- Completed 302 Found in 1ms
183
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
184
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
185
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
186
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
187
- Completed 302 Found in 1ms
188
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
189
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
190
- Parameters: {"successURL"=>"http://example.com/forthewin"}
191
- Completed 500 Internal Server Error in 0ms
192
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:42:29 +0000
193
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
194
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
195
- Completed 500 Internal Server Error in 0ms
196
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
197
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
198
- Processing by DefraRubyMocks::CompanyController#show as HTML
199
- Parameters: {"id"=>"foo"}
200
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.7ms)
201
- Completed 404 Not Found in 28ms (Views: 27.5ms)
202
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
203
- Processing by DefraRubyMocks::CompanyController#show as HTML
204
- Parameters: {"id"=>"SC247974"}
205
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (4.0ms)
206
- Completed 200 OK in 9ms (Views: 8.4ms)
207
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
208
- Processing by DefraRubyMocks::CompanyController#show as HTML
209
- Parameters: {"id"=>"05868270"}
210
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
211
- Completed 200 OK in 1ms (Views: 0.6ms)
212
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
213
- Processing by DefraRubyMocks::CompanyController#show as HTML
214
- Parameters: {"id"=>"99999999"}
215
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
216
- Completed 404 Not Found in 1ms (Views: 0.5ms)
217
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
218
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
219
- Completed 500 Internal Server Error in 1ms
220
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
221
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
222
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
223
- Completed 200 OK in 15ms (Views: 14.8ms)
224
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
225
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
226
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
227
- Completed 500 Internal Server Error in 0ms
228
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
229
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
230
- Parameters: {"successURL"=>"http://example.com/forthewin"}
231
- Completed 500 Internal Server Error in 0ms
232
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
233
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
234
- Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
235
- Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
236
- Completed 302 Found in 1ms
237
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
238
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
239
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
240
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
241
- Completed 302 Found in 1ms
242
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
243
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:06 +0000
244
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
245
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
246
- Processing by DefraRubyMocks::CompanyController#show as HTML
247
- Parameters: {"id"=>"SC247974"}
248
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (3.4ms)
249
- Completed 200 OK in 27ms (Views: 26.6ms)
250
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
251
- Processing by DefraRubyMocks::CompanyController#show as HTML
252
- Parameters: {"id"=>"foo"}
253
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.5ms)
254
- Completed 404 Not Found in 5ms (Views: 5.3ms)
255
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
256
- Processing by DefraRubyMocks::CompanyController#show as HTML
257
- Parameters: {"id"=>"05868270"}
258
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
259
- Completed 200 OK in 1ms (Views: 0.5ms)
260
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
261
- Processing by DefraRubyMocks::CompanyController#show as HTML
262
- Parameters: {"id"=>"99999999"}
263
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
264
- Completed 404 Not Found in 1ms (Views: 0.4ms)
265
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
266
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
267
- Parameters: {"successURL"=>"http://example.com/forthewin"}
268
- Completed 500 Internal Server Error in 0ms
269
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
270
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
271
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
272
- Completed 500 Internal Server Error in 0ms
273
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
274
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
275
- Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
276
- Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
277
- Completed 302 Found in 1ms
278
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
279
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
280
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
281
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
282
- Completed 302 Found in 1ms
283
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
284
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
285
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.4ms)
286
- Completed 200 OK in 13ms (Views: 12.7ms)
287
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
288
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
289
- Completed 500 Internal Server Error in 0ms
290
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
291
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:43:51 +0000
292
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
293
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
294
- Processing by DefraRubyMocks::CompanyController#show as HTML
295
- Parameters: {"id"=>"99999999"}
296
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (2.6ms)
297
- Completed 404 Not Found in 26ms (Views: 26.0ms)
298
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
299
- Processing by DefraRubyMocks::CompanyController#show as HTML
300
- Parameters: {"id"=>"SC247974"}
301
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
302
- Completed 200 OK in 5ms (Views: 4.4ms)
303
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
304
- Processing by DefraRubyMocks::CompanyController#show as HTML
305
- Parameters: {"id"=>"foo"}
306
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
307
- Completed 404 Not Found in 1ms (Views: 0.5ms)
308
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
309
- Processing by DefraRubyMocks::CompanyController#show as HTML
310
- Parameters: {"id"=>"05868270"}
311
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
312
- Completed 200 OK in 1ms (Views: 0.5ms)
313
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
314
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
315
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
316
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
317
- Parameters: {"successURL"=>"http://example.com/forthewin"}
318
- Completed 500 Internal Server Error in 0ms
319
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
320
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
321
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
322
- Completed 500 Internal Server Error in 1ms
323
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
324
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
325
- Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
326
- Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
327
- Completed 302 Found in 1ms
328
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
329
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
330
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
331
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
332
- Completed 302 Found in 1ms
333
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
334
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
335
- Completed 500 Internal Server Error in 1ms
336
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:44:28 +0000
337
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
338
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
339
- Completed 200 OK in 14ms (Views: 13.3ms)
340
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
341
- Processing by DefraRubyMocks::CompanyController#show as HTML
342
- Parameters: {"id"=>"SC247974"}
343
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.8ms)
344
- Completed 200 OK in 31ms (Views: 30.5ms)
345
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
346
- Processing by DefraRubyMocks::CompanyController#show as HTML
347
- Parameters: {"id"=>"foo"}
348
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.3ms)
349
- Completed 404 Not Found in 5ms (Views: 4.4ms)
350
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
351
- Processing by DefraRubyMocks::CompanyController#show as HTML
352
- Parameters: {"id"=>"05868270"}
353
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
354
- Completed 200 OK in 1ms (Views: 0.5ms)
355
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
356
- Processing by DefraRubyMocks::CompanyController#show as HTML
357
- Parameters: {"id"=>"99999999"}
358
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
359
- Completed 404 Not Found in 1ms (Views: 0.5ms)
360
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
361
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
362
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
363
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
364
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
365
- Completed 500 Internal Server Error in 0ms
366
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
367
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
368
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.5ms)
369
- Completed 200 OK in 15ms (Views: 14.6ms)
370
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
371
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
372
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
373
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
374
- Completed 302 Found in 1ms
375
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fyour-registration%2F12345%2Fworldpay%2Fsuccess%2F54321%2FNEWREG%3Flocale%3Den" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
376
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
377
- Parameters: {"successURL"=>"http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en"}
378
- Redirected to http://example.com/your-registration/12345/worldpay/success/54321/NEWREG?locale=en&orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
379
- Completed 302 Found in 1ms
380
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:47:16 +0000
381
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
382
- Parameters: {"successURL"=>"http://example.com/forthewin"}
383
- Completed 500 Internal Server Error in 0ms
384
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
385
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
386
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
387
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
388
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (2.7ms)
389
- Completed 200 OK in 28ms (Views: 27.2ms)
390
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
391
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
392
- Completed 500 Internal Server Error in 0ms
393
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
394
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
395
- Parameters: {"successURL"=>"http://example.com/forthewin"}
396
- Completed 500 Internal Server Error in 0ms
397
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
398
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
399
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
400
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
401
- Completed 302 Found in 1ms
402
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
403
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
404
- Processing by DefraRubyMocks::CompanyController#show as HTML
405
- Parameters: {"id"=>"SC247974"}
406
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.4ms)
407
- Completed 200 OK in 19ms (Views: 18.8ms)
408
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
409
- Processing by DefraRubyMocks::CompanyController#show as HTML
410
- Parameters: {"id"=>"foo"}
411
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
412
- Completed 404 Not Found in 5ms (Views: 4.5ms)
413
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
414
- Processing by DefraRubyMocks::CompanyController#show as HTML
415
- Parameters: {"id"=>"05868270"}
416
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
417
- Completed 200 OK in 1ms (Views: 0.4ms)
418
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:50:53 +0000
419
- Processing by DefraRubyMocks::CompanyController#show as HTML
420
- Parameters: {"id"=>"99999999"}
421
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
422
- Completed 404 Not Found in 1ms (Views: 0.6ms)
423
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
424
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
425
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
426
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
427
- Completed 500 Internal Server Error in 4ms
428
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
429
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
430
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (4.7ms)
431
- Completed 200 OK in 38ms (Views: 37.8ms)
432
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
433
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
434
- Parameters: {"successURL"=>"http://example.com/forthewin"}
435
- Completed 500 Internal Server Error in 1ms
436
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:54:20 +0000
437
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
438
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
439
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
440
- Completed 302 Found in 0ms
441
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:55:47 +0000
442
- Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2020-01-20 15:55:47 +0000
443
- Processing by DefraRubyMocks::CompanyController#show as HTML
444
- Parameters: {"id"=>"05868270"}
445
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (2.6ms)
446
- Completed 200 OK in 30ms (Views: 30.0ms)
447
- Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
448
- Processing by DefraRubyMocks::CompanyController#show as HTML
449
- Parameters: {"id"=>"foo"}
450
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.4ms)
451
- Completed 404 Not Found in 6ms (Views: 5.4ms)
452
- Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
453
- Processing by DefraRubyMocks::CompanyController#show as HTML
454
- Parameters: {"id"=>"SC247974"}
455
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (0.1ms)
456
- Completed 200 OK in 1ms (Views: 0.4ms)
457
- Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
458
- Processing by DefraRubyMocks::CompanyController#show as HTML
459
- Parameters: {"id"=>"99999999"}
460
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (0.1ms)
461
- Completed 404 Not Found in 1ms (Views: 0.4ms)
462
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
463
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
464
- Rendered /Users/acruikshanks/projects/defra/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payments_service.xml.erb (0.6ms)
465
- Completed 200 OK in 13ms (Views: 12.4ms)
466
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
467
- Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
468
- Completed 500 Internal Server Error in 0ms
469
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
470
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
471
- Parameters: {"successURL"=>"http://example.com/forthewin"}
472
- Completed 500 Internal Server Error in 0ms
473
- Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
474
- Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
475
- Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success"}
476
- Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
477
- Completed 302 Found in 1ms
478
- Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
479
- Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2020-01-20 15:55:48 +0000
@@ -60,7 +60,7 @@ module DefraRubyMocks
60
60
 
61
61
  context "#dispatcher" do
62
62
  let(:relation) { double(:relation, first: registration) }
63
- let(:registration) { double(:registration, finance_details: finance_details) }
63
+ let(:registration) { double(:registration, finance_details: finance_details, company_name: "What a waste") }
64
64
  let(:finance_details) { double(:finance_details, orders: orders) }
65
65
  let(:orders) { double(:orders, order_by: sorted_orders) }
66
66
  let(:sorted_orders) { double(:sorted_orders, first: order) }
@@ -23,8 +23,9 @@ module DefraRubyMocks
23
23
  let(:order_code) { "54321" }
24
24
  let(:order_key) { "#{admin_code}^#{merchant_code}^#{order_code}" }
25
25
  let(:order_value) { 105_00 }
26
+ let(:company_name) { "Pay for the thing" }
26
27
 
27
- let(:registration) { double(:registration, finance_details: finance_details) }
28
+ let(:registration) { double(:registration, finance_details: finance_details, company_name: company_name) }
28
29
  let(:finance_details) { double(:finance_details, orders: orders) }
29
30
  let(:orders) { double(:orders, order_by: sorted_orders) }
30
31
  let(:sorted_orders) { double(:sorted_orders, first: order) }
@@ -42,10 +43,12 @@ module DefraRubyMocks
42
43
  Digest::MD5.hexdigest(data.join).to_s
43
44
  end
44
45
 
46
+ let(:payment_status) { "AUTHORISED" }
47
+
45
48
  let(:query_string) do
46
49
  [
47
50
  "orderKey=#{order_key}",
48
- "paymentStatus=AUTHORISED",
51
+ "paymentStatus=#{payment_status}",
49
52
  "paymentAmount=#{order_value}",
50
53
  "paymentCurrency=GBP",
51
54
  "mac=#{mac}",
@@ -53,35 +56,51 @@ module DefraRubyMocks
53
56
  ].join("&")
54
57
  end
55
58
 
59
+ let(:args) { { success_url: success_url, failure_url: failure_url } }
60
+
56
61
  describe ".run" do
57
62
  context "when the request comes from the waste-carriers-front-office" do
58
63
  let(:success_url) { "http://example.com/fo/#{reference}/worldpay/success" }
64
+ let(:failure_url) { "http://example.com/fo/#{reference}/worldpay/failure" }
59
65
 
60
66
  context "and is valid" do
61
67
  let(:relation) { double(:relation, first: registration) }
62
68
 
63
69
  it "can extract the reference from the `success_url`" do
64
- described_class.run(success_url)
70
+ described_class.run(args)
65
71
 
66
72
  expect(::WasteCarriersEngine::TransientRegistration).to have_received(:where).with(token: reference)
67
73
  end
68
74
 
69
75
  it "can generate a valid order key" do
70
- params = parse_for_params(described_class.run(success_url))
76
+ params = parse_for_params(described_class.run(args))
71
77
 
72
78
  expect(params["orderKey"]).to eq(order_key)
73
79
  end
74
80
 
75
81
  it "can generate a valid mac" do
76
- params = parse_for_params(described_class.run(success_url))
82
+ params = parse_for_params(described_class.run(args))
77
83
 
78
84
  expect(params["mac"]).to eq(mac)
79
85
  end
80
86
 
81
- it "returns a url in the expected format" do
82
- expected_response = "#{success_url}?#{query_string}"
87
+ context "and is for a successful payment" do
88
+ it "returns a url in the expected format" do
89
+ expected_response = "#{success_url}?#{query_string}"
83
90
 
84
- expect(described_class.run(success_url)).to eq(expected_response)
91
+ expect(described_class.run(args)).to eq(expected_response)
92
+ end
93
+ end
94
+
95
+ context "and is for a rejected payment" do
96
+ let(:payment_status) { "REFUSED" }
97
+ let(:company_name) { "Reject for the thing" }
98
+
99
+ it "returns a url in the expected format" do
100
+ expected_response = "#{failure_url}?#{query_string}"
101
+
102
+ expect(described_class.run(args)).to eq(expected_response)
103
+ end
85
104
  end
86
105
  end
87
106
 
@@ -89,7 +108,15 @@ module DefraRubyMocks
89
108
  let(:relation) { double(:relation, first: nil) }
90
109
 
91
110
  it "causes an error" do
92
- expect { described_class.run(success_url) }.to raise_error MissingRegistrationError
111
+ expect { described_class.run(args) }.to raise_error MissingRegistrationError
112
+ end
113
+ end
114
+
115
+ context "but the registration does not exist" do
116
+ let(:relation) { double(:relation, first: nil) }
117
+
118
+ it "causes an error" do
119
+ expect { described_class.run(args) }.to raise_error MissingRegistrationError
93
120
  end
94
121
  end
95
122
  end
@@ -104,32 +131,46 @@ module DefraRubyMocks
104
131
  end
105
132
 
106
133
  let(:success_url) { "http://example.com/your-registration/#{reference}/worldpay/success/54321/NEWREG?locale=en" }
134
+ let(:failure_url) { "http://example.com/your-registration/#{reference}/worldpay/failure/54321/NEWREG?locale=en" }
107
135
 
108
136
  context "and is valid" do
109
137
  let(:relation) { double(:relation, first: registration) }
110
138
 
111
139
  it "can extract the reference from the `success_url`" do
112
- described_class.run(success_url)
140
+ described_class.run(args)
113
141
 
114
142
  expect(::WasteCarriersEngine::Registration).to have_received(:where).with(reg_uuid: reference)
115
143
  end
116
144
 
117
145
  it "can generate a valid order key" do
118
- params = parse_for_params(described_class.run(success_url))
146
+ params = parse_for_params(described_class.run(args))
119
147
 
120
148
  expect(params["orderKey"]).to eq(order_key)
121
149
  end
122
150
 
123
151
  it "can generate a valid mac" do
124
- params = parse_for_params(described_class.run(success_url))
152
+ params = parse_for_params(described_class.run(args))
125
153
 
126
154
  expect(params["mac"]).to eq(mac)
127
155
  end
128
156
 
129
- it "returns a url in the expected format" do
130
- expected_response = "#{success_url}&#{query_string}"
157
+ context "and is for a successful payment" do
158
+ it "returns a url in the expected format" do
159
+ expected_response = "#{success_url}&#{query_string}"
160
+
161
+ expect(described_class.run(args)).to eq(expected_response)
162
+ end
163
+ end
164
+
165
+ context "and is for a rejected payment" do
166
+ let(:payment_status) { "REFUSED" }
167
+ let(:company_name) { "Reject for the thing" }
168
+
169
+ it "returns a url in the expected format" do
170
+ expected_response = "#{failure_url}&#{query_string}"
131
171
 
132
- expect(described_class.run(success_url)).to eq(expected_response)
172
+ expect(described_class.run(args)).to eq(expected_response)
173
+ end
133
174
  end
134
175
  end
135
176
 
@@ -137,7 +178,7 @@ module DefraRubyMocks
137
178
  let(:relation) { double(:relation, first: nil) }
138
179
 
139
180
  it "causes an error" do
140
- expect { described_class.run(success_url) }.to raise_error MissingRegistrationError
181
+ expect { described_class.run(args) }.to raise_error MissingRegistrationError
141
182
  end
142
183
  end
143
184
  end
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.2.0
4
+ version: 1.3.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-01-22 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 0.17.1
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 0.17.1
111
111
  description: A Rails engine which can be used to mock external services when loaded
112
112
  into an application
113
113
  email:
@@ -173,13 +173,11 @@ files:
173
173
  - spec/dummy/config/locales/en.yml
174
174
  - spec/dummy/config/routes.rb
175
175
  - spec/dummy/config/secrets.yml
176
- - spec/dummy/log/development.log
177
176
  - spec/dummy/log/test.log
178
177
  - spec/dummy/public/404.html
179
178
  - spec/dummy/public/422.html
180
179
  - spec/dummy/public/500.html
181
180
  - spec/dummy/public/favicon.ico
182
- - spec/examples.txt
183
181
  - spec/fixtures/payment_request_invalid.xml
184
182
  - spec/fixtures/payment_request_valid.xml
185
183
  - spec/fixtures/refund_request_invalid.xml
@@ -261,9 +259,7 @@ test_files:
261
259
  - spec/dummy/public/500.html
262
260
  - spec/dummy/public/404.html
263
261
  - spec/dummy/log/test.log
264
- - spec/dummy/log/development.log
265
262
  - spec/dummy/README.rdoc
266
- - spec/examples.txt
267
263
  - spec/defra_ruby_mocks_spec.rb
268
264
  - spec/requests/company_spec.rb
269
265
  - spec/requests/worldpay_spec.rb
File without changes
data/spec/examples.txt DELETED
@@ -1,56 +0,0 @@
1
- example_id | status | run_time |
2
- ------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/defra_ruby_mocks_spec.rb[1:1:1] | passed | 0.00552 seconds |
4
- ./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.00013 seconds |
5
- ./spec/defra_ruby_mocks_spec.rb[1:2:2:1] | passed | 0.00016 seconds |
6
- ./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.00009 seconds |
7
- ./spec/lib/configuration_spec.rb[1:1:2:1] | passed | 0.00009 seconds |
8
- ./spec/lib/configuration_spec.rb[1:1:3:1] | passed | 0.0001 seconds |
9
- ./spec/lib/configuration_spec.rb[1:1:4:1] | passed | 0.00008 seconds |
10
- ./spec/lib/configuration_spec.rb[1:2:1:1] | passed | 0.00238 seconds |
11
- ./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.00009 seconds |
12
- ./spec/lib/configuration_spec.rb[1:2:3:1] | passed | 0.0001 seconds |
13
- ./spec/lib/configuration_spec.rb[1:2:4:1] | passed | 0.00011 seconds |
14
- ./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.00478 seconds |
15
- ./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.065 seconds |
16
- ./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.00475 seconds |
17
- ./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.01227 seconds |
18
- ./spec/requests/company_spec.rb[1:2:1] | passed | 0.0137 seconds |
19
- ./spec/requests/worldpay_spec.rb[1:1:1:1:1] | passed | 0.02505 seconds |
20
- ./spec/requests/worldpay_spec.rb[1:1:1:2:1] | passed | 0.00472 seconds |
21
- ./spec/requests/worldpay_spec.rb[1:1:2:1:1] | passed | 0.00564 seconds |
22
- ./spec/requests/worldpay_spec.rb[1:1:2:2:1:1] | passed | 0.00433 seconds |
23
- ./spec/requests/worldpay_spec.rb[1:2:1:1] | passed | 0.00355 seconds |
24
- ./spec/requests/worldpay_spec.rb[1:2:2:1] | passed | 0.00297 seconds |
25
- ./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.00013 seconds |
26
- ./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.00009 seconds |
27
- ./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.00009 seconds |
28
- ./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.00011 seconds |
29
- ./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.00009 seconds |
30
- ./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.00009 seconds |
31
- ./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.00009 seconds |
32
- ./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.0001 seconds |
33
- ./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.00009 seconds |
34
- ./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.00009 seconds |
35
- ./spec/services/companies_house_service_spec.rb[1:1:3:1:1] | passed | 0.0001 seconds |
36
- ./spec/services/companies_house_service_spec.rb[1:1:3:2:1] | passed | 0.00012 seconds |
37
- ./spec/services/worldpay_request_service_spec.rb[1:1:1:1] | passed | 0.00014 seconds |
38
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:1] | passed | 0.00233 seconds |
39
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:2] | passed | 0.00076 seconds |
40
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:3:1] | passed | 0.0005 seconds |
41
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:3:2] | passed | 0.00047 seconds |
42
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:4:1] | passed | 0.0005 seconds |
43
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:4:2] | passed | 0.0005 seconds |
44
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:4:3] | passed | 0.00084 seconds |
45
- ./spec/services/worldpay_request_service_spec.rb[1:1:2:1:5:1] | passed | 0.00056 seconds |
46
- ./spec/services/worldpay_request_service_spec.rb[1:1:3:1] | passed | 0.00032 seconds |
47
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:1] | passed | 0.00076 seconds |
48
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:2] | passed | 0.00083 seconds |
49
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3] | passed | 0.0009 seconds |
50
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4] | passed | 0.00081 seconds |
51
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:2:1] | passed | 0.00063 seconds |
52
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:1] | passed | 0.02869 seconds |
53
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:2] | passed | 0.0011 seconds |
54
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3] | passed | 0.00111 seconds |
55
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4] | passed | 0.00138 seconds |
56
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:2:1] | passed | 0.00091 seconds |