defra_ruby_mocks 2.2.0 → 2.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
  SHA256:
3
- metadata.gz: bc69209c2d4b90b3726d7486bb0f4f0f001d80aff649951f4e8eaa5e17e46cec
4
- data.tar.gz: 2f8ca2c6731b2d0eae695e7aeae936c20288480bf758c4f16fcdcf3a27f70067
3
+ metadata.gz: e8db113c494c3e74f9f41a01055afcab1a917708e5ba35997d7f9dcd6829f342
4
+ data.tar.gz: 6790a0a43812ae7eda27aa51096a846b1b0bda32ca2229a8c55c1bed9e3277cd
5
5
  SHA512:
6
- metadata.gz: ed7a96c4eb66607adbe341b441181b339b60e28cf1d66e92e1eb6467606d82676110efc587d921a309fec419c472095a82c7b1b1bb8ebbff64740182c38723f4
7
- data.tar.gz: f9b8847f14ac049e9b1cef302cfbe8893c6b56797e5f48e6b6548f939c16f923111c2f79be4023ab8c1c5a62aa91db10eebfc73b797de9feb7326798a65af215
6
+ metadata.gz: 50a22b6011b95c82f65a20033d90e0b7622381e64aa9175a328a26e27b519203a2f5a72e7e2effa247514b130a675a5390144e7d68bee270315d6c74b62dc525
7
+ data.tar.gz: 3df174fcab0e99ede6b049ba26aecfb36530a476dfb2a1c5e9f7ac688cc662fca18478fa23c5d30f58fbdf1ca8d404d2f8b586078d1ba38ea0090ae88735df52
data/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  ![Build Status](https://github.com/DEFRA/defra-ruby-mocks/workflows/CI/badge.svg?branch=main)
4
4
  [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=DEFRA_defra-ruby-mocks&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=DEFRA_defra-ruby-mocks)
5
5
  [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=DEFRA_defra-ruby-mocks&metric=coverage)](https://sonarcloud.io/dashboard?id=DEFRA_defra-ruby-mocks)
6
- [![security](https://hakiri.io/github/DEFRA/defra-ruby-mocks/main.svg)](https://hakiri.io/github/DEFRA/defra-ruby-mocks/main)
7
6
  [![Licence](https://img.shields.io/badge/Licence-OGLv3-blue.svg)](http://www.nationalarchives.gov.uk/doc/open-government-licence/version/3)
8
7
 
9
8
  A Rails Engine used by the [Ruby services team](https://github.com/DEFRA/ruby-services-team) in their digital services.
@@ -2,6 +2,7 @@
2
2
 
3
3
  module DefraRubyMocks
4
4
  class WorldpayController < ::DefraRubyMocks::ApplicationController
5
+ protect_from_forgery with: :exception, except: [:payments_service]
5
6
 
6
7
  before_action :set_default_response_format
7
8
 
data/config/routes.rb CHANGED
@@ -11,10 +11,10 @@ DefraRubyMocks::Engine.routes.draw do
11
11
  as: "company_officers",
12
12
  constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
13
13
 
14
- get "/worldpay/payments-service",
15
- to: "worldpay#payments_service",
16
- as: "worldpay_payments_service",
17
- constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
14
+ post "/worldpay/payments-service",
15
+ to: "worldpay#payments_service",
16
+ as: "worldpay_payments_service",
17
+ constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
18
18
 
19
19
  get "/worldpay/dispatcher",
20
20
  to: "worldpay#dispatcher",
@@ -5,8 +5,7 @@ module DefraRubyMocks
5
5
 
6
6
  DEFAULT_DELAY = 1000
7
7
 
8
- attr_accessor :worldpay_admin_code, :worldpay_mac_secret
9
- attr_accessor :worldpay_merchant_code, :worldpay_domain
8
+ attr_accessor :worldpay_admin_code, :worldpay_mac_secret, :worldpay_merchant_code, :worldpay_domain
10
9
  attr_reader :delay
11
10
 
12
11
  def initialize
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DefraRubyMocks
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.0"
5
5
  end
@@ -2256,3 +2256,352 @@ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2256
2256
  Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
2257
2257
  Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.5ms | Allocations: 141)
2258
2258
  Completed 200 OK in 2ms (Views: 1.7ms | Allocations: 657)
2259
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2260
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2261
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2262
+ Parameters: {"id"=>"99999999"}
2263
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2264
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 1.2ms | Allocations: 253)
2265
+ Completed 404 Not Found in 10ms (Views: 10.0ms | Allocations: 2394)
2266
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2267
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2268
+ Parameters: {"id"=>"foo"}
2269
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2270
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2271
+ Completed 404 Not Found in 1ms (Views: 0.5ms | Allocations: 254)
2272
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2273
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2274
+ Parameters: {"id"=>"SC247974"}
2275
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2276
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.8ms | Allocations: 123)
2277
+ Completed 200 OK in 7ms (Views: 5.6ms | Allocations: 632)
2278
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2279
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2280
+ Parameters: {"id"=>"05868270"}
2281
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2282
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2283
+ Completed 200 OK in 1ms (Views: 0.6ms | Allocations: 307)
2284
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2285
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2286
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2287
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2288
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2289
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2290
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2291
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2292
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2293
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2294
+ Parameters: {"id"=>"company-no"}
2295
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2296
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 0.6ms | Allocations: 106)
2297
+ Completed 200 OK in 3ms (Views: 1.5ms | Allocations: 594)
2298
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 14:56:22 +0100
2299
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2300
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2301
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2302
+ Parameters: {"id"=>"05868270"}
2303
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2304
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 1.6ms | Allocations: 284)
2305
+ Completed 200 OK in 11ms (Views: 7.2ms | Allocations: 2492)
2306
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2307
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2308
+ Parameters: {"id"=>"99999999"}
2309
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2310
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.6ms | Allocations: 86)
2311
+ Completed 404 Not Found in 2ms (Views: 1.7ms | Allocations: 535)
2312
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2313
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2314
+ Parameters: {"id"=>"foo"}
2315
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2316
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2317
+ Completed 404 Not Found in 1ms (Views: 0.6ms | Allocations: 254)
2318
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2319
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2320
+ Parameters: {"id"=>"SC247974"}
2321
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2322
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2323
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 306)
2324
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2325
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2326
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2327
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2328
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2329
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2330
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2331
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2332
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
2333
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 1.0ms | Allocations: 459)
2334
+ Completed 200 OK in 3ms (Views: 2.3ms | Allocations: 1239)
2335
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2336
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2337
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2338
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
2339
+ Completed 302 Found in 1ms (Allocations: 344)
2340
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2341
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2342
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2343
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
2344
+ Completed 500 Internal Server Error in 1ms (Allocations: 162)
2345
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2346
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2347
+ Parameters: {"id"=>"company-no"}
2348
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2349
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 1.0ms | Allocations: 104)
2350
+ Completed 200 OK in 4ms (Views: 2.0ms | Allocations: 592)
2351
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:08:37 +0100
2352
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2353
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2354
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2355
+ Parameters: {"id"=>"foo"}
2356
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2357
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 1.8ms | Allocations: 253)
2358
+ Completed 404 Not Found in 12ms (Views: 11.8ms | Allocations: 2394)
2359
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2360
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2361
+ Parameters: {"id"=>"SC247974"}
2362
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2363
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.9ms | Allocations: 123)
2364
+ Completed 200 OK in 2ms (Views: 1.3ms | Allocations: 633)
2365
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2366
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2367
+ Parameters: {"id"=>"05868270"}
2368
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2369
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2370
+ Completed 200 OK in 1ms (Views: 0.4ms | Allocations: 307)
2371
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2372
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2373
+ Parameters: {"id"=>"99999999"}
2374
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2375
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2376
+ Completed 404 Not Found in 1ms (Views: 0.7ms | Allocations: 253)
2377
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2378
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2379
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2380
+ Parameters: {"id"=>"company-no"}
2381
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2382
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 0.7ms | Allocations: 106)
2383
+ Completed 200 OK in 2ms (Views: 1.1ms | Allocations: 594)
2384
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2385
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2386
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2387
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2388
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
2389
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 1.0ms | Allocations: 162)
2390
+ Completed 200 OK in 6ms (Views: 4.9ms | Allocations: 1386)
2391
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2392
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2393
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
2394
+ Completed 500 Internal Server Error in 1ms (Allocations: 614)
2395
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2396
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2397
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
2398
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.9ms | Allocations: 141)
2399
+ Completed 200 OK in 3ms (Views: 2.7ms | Allocations: 647)
2400
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2401
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2402
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2403
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
2404
+ Completed 500 Internal Server Error in 0ms (Allocations: 158)
2405
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2406
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2407
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2408
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
2409
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 1.1ms | Allocations: 457)
2410
+ Completed 200 OK in 3ms (Views: 2.3ms | Allocations: 1083)
2411
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:09:11 +0100
2412
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2413
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2414
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
2415
+ Completed 302 Found in 1ms (Allocations: 344)
2416
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 15:10:18 +0100
2417
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:10:18 +0100
2418
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:10:18 +0100
2419
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2420
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
2421
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 1.6ms | Allocations: 324)
2422
+ Completed 200 OK in 11ms (Views: 10.4ms | Allocations: 2569)
2423
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:10:18 +0100
2424
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2425
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
2426
+ Completed 500 Internal Server Error in 9ms (Allocations: 616)
2427
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2428
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2429
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
2430
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.6ms | Allocations: 145)
2431
+ Completed 200 OK in 2ms (Views: 1.9ms | Allocations: 651)
2432
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2433
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2434
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2435
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
2436
+ Completed 302 Found in 1ms (Allocations: 363)
2437
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2438
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2439
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2440
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
2441
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.9ms | Allocations: 457)
2442
+ Completed 200 OK in 4ms (Views: 2.6ms | Allocations: 1097)
2443
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2444
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2445
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2446
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
2447
+ Completed 500 Internal Server Error in 0ms (Allocations: 174)
2448
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2449
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2450
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2451
+ Parameters: {"id"=>"company-no"}
2452
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2453
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 0.4ms | Allocations: 104)
2454
+ Completed 200 OK in 4ms (Views: 2.7ms | Allocations: 1269)
2455
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2456
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2457
+ Parameters: {"id"=>"SC247974"}
2458
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2459
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.6ms | Allocations: 122)
2460
+ Completed 200 OK in 2ms (Views: 1.3ms | Allocations: 622)
2461
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2462
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2463
+ Parameters: {"id"=>"foo"}
2464
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2465
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 86)
2466
+ Completed 404 Not Found in 2ms (Views: 1.6ms | Allocations: 535)
2467
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2468
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2469
+ Parameters: {"id"=>"99999999"}
2470
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2471
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2472
+ Completed 404 Not Found in 1ms (Views: 0.8ms | Allocations: 254)
2473
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2474
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2475
+ Parameters: {"id"=>"05868270"}
2476
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2477
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2478
+ Completed 200 OK in 1ms (Views: 0.7ms | Allocations: 306)
2479
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:10:19 +0100
2480
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2481
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2482
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
2483
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 1.6ms | Allocations: 309)
2484
+ Completed 200 OK in 11ms (Views: 10.1ms | Allocations: 2508)
2485
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2486
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2487
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
2488
+ Completed 500 Internal Server Error in 1ms (Allocations: 615)
2489
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2490
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2491
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
2492
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 0.4ms | Allocations: 156)
2493
+ Completed 200 OK in 2ms (Views: 1.5ms | Allocations: 716)
2494
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2495
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2496
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2497
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
2498
+ Completed 500 Internal Server Error in 0ms (Allocations: 181)
2499
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2500
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2501
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2502
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
2503
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.6ms | Allocations: 459)
2504
+ Completed 200 OK in 2ms (Views: 1.8ms | Allocations: 1101)
2505
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2506
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2507
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2508
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
2509
+ Completed 302 Found in 1ms (Allocations: 355)
2510
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2511
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2512
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2513
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2514
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2515
+ Parameters: {"id"=>"company-no"}
2516
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2517
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 0.5ms | Allocations: 104)
2518
+ Completed 200 OK in 4ms (Views: 2.6ms | Allocations: 1269)
2519
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2520
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2521
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2522
+ Parameters: {"id"=>"05868270"}
2523
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2524
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.4ms | Allocations: 122)
2525
+ Completed 200 OK in 2ms (Views: 0.9ms | Allocations: 622)
2526
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2527
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2528
+ Parameters: {"id"=>"SC247974"}
2529
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2530
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2531
+ Completed 200 OK in 1ms (Views: 0.5ms | Allocations: 307)
2532
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2533
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2534
+ Parameters: {"id"=>"foo"}
2535
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2536
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 86)
2537
+ Completed 404 Not Found in 2ms (Views: 1.4ms | Allocations: 534)
2538
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 15:39:03 +0100
2539
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2540
+ Parameters: {"id"=>"99999999"}
2541
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2542
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2543
+ Completed 404 Not Found in 1ms (Views: 0.7ms | Allocations: 254)
2544
+ Started GET "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2545
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2546
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2547
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2548
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb
2549
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/refund_request.xml.erb (Duration: 1.1ms | Allocations: 324)
2550
+ Completed 200 OK in 9ms (Views: 8.6ms | Allocations: 2569)
2551
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2552
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2553
+ MOCKS: Worldpay payments service error: undefined method `text' for nil:NilClass
2554
+ Completed 500 Internal Server Error in 1ms (Allocations: 614)
2555
+ Started POST "/defra_ruby_mocks/worldpay/payments-service" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2556
+ Processing by DefraRubyMocks::WorldpayController#payments_service as HTML
2557
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb
2558
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/payment_request.xml.erb (Duration: 0.8ms | Allocations: 141)
2559
+ Completed 200 OK in 3ms (Views: 2.7ms | Allocations: 647)
2560
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2561
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2562
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2563
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb
2564
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/worldpay/stuck.html.erb (Duration: 0.7ms | Allocations: 457)
2565
+ Completed 200 OK in 2ms (Views: 1.8ms | Allocations: 1105)
2566
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fsuccess&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2567
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2568
+ Parameters: {"successURL"=>"http://example.com/fo/12345/worldpay/success", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2569
+ Redirected to http://example.com/fo/12345/worldpay/success?orderKey=admincode1^^987654&paymentStatus=AUTHORISED&paymentAmount=10500&paymentCurrency=GBP&mac=0ba5271e1ed1b26f9bb428ef7fb536a4&source=WP
2570
+ Completed 302 Found in 1ms (Allocations: 355)
2571
+ Started GET "/defra_ruby_mocks/worldpay/dispatcher?successURL=http%3A%2F%2Fexample.com%2Fforthewin&failureURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ffailure&pendingURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fpending&cancelURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Fcancel&errorURL=http%3A%2F%2Fexample.com%2Ffo%2F12345%2Fworldpay%2Ferror" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2572
+ Processing by DefraRubyMocks::WorldpayController#dispatcher as HTML
2573
+ Parameters: {"successURL"=>"http://example.com/forthewin", "failureURL"=>"http://example.com/fo/12345/worldpay/failure", "pendingURL"=>"http://example.com/fo/12345/worldpay/pending", "cancelURL"=>"http://example.com/fo/12345/worldpay/cancel", "errorURL"=>"http://example.com/fo/12345/worldpay/error"}
2574
+ MOCKS: Worldpay dispatcher error: Could not find resource: foo
2575
+ Completed 500 Internal Server Error in 1ms (Allocations: 174)
2576
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2577
+ Started GET "/defra_ruby_mocks/company/company-no/officers" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2578
+ Processing by DefraRubyMocks::CompanyController#officers as HTML
2579
+ Parameters: {"id"=>"company-no"}
2580
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb
2581
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/officers.json.erb (Duration: 0.5ms | Allocations: 106)
2582
+ Completed 200 OK in 5ms (Views: 3.5ms | Allocations: 1273)
2583
+ Started GET "/defra_ruby_mocks/company/05868270" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2584
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2585
+ Parameters: {"id"=>"05868270"}
2586
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2587
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.6ms | Allocations: 122)
2588
+ Completed 200 OK in 2ms (Views: 1.2ms | Allocations: 622)
2589
+ Started GET "/defra_ruby_mocks/company/99999999" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2590
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2591
+ Parameters: {"id"=>"99999999"}
2592
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2593
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.3ms | Allocations: 86)
2594
+ Completed 404 Not Found in 2ms (Views: 1.7ms | Allocations: 535)
2595
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2596
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2597
+ Parameters: {"id"=>"SC247974"}
2598
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb
2599
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/show.json.erb (Duration: 0.1ms | Allocations: 12)
2600
+ Completed 200 OK in 1ms (Views: 1.0ms | Allocations: 307)
2601
+ Started GET "/defra_ruby_mocks/company/foo" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
2602
+ Processing by DefraRubyMocks::CompanyController#show as HTML
2603
+ Parameters: {"id"=>"foo"}
2604
+ Rendering /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb
2605
+ Rendered /Users/toby/Code/defra/wcr-vagrant/defra-ruby-mocks/app/views/defra_ruby_mocks/company/not_found.json.erb (Duration: 0.1ms | Allocations: 10)
2606
+ Completed 404 Not Found in 1ms (Views: 0.8ms | Allocations: 253)
2607
+ Started GET "/defra_ruby_mocks/company/SC247974" for 127.0.0.1 at 2022-03-29 15:39:19 +0100
data/spec/examples.txt CHANGED
@@ -1,114 +1,114 @@
1
1
  example_id | status | run_time |
2
2
  ------------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/defra_ruby_mocks_spec.rb[1:1:1] | passed | 0.00213 seconds |
4
- ./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.00077 seconds |
3
+ ./spec/defra_ruby_mocks_spec.rb[1:1:1] | passed | 0.00215 seconds |
4
+ ./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.00018 seconds |
5
5
  ./spec/defra_ruby_mocks_spec.rb[1:2:2:1] | passed | 0.00014 seconds |
6
- ./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.00015 seconds |
7
- ./spec/lib/configuration_spec.rb[1:1:2:1] | passed | 0.00012 seconds |
8
- ./spec/lib/configuration_spec.rb[1:1:3:1] | passed | 0.00094 seconds |
6
+ ./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.00011 seconds |
7
+ ./spec/lib/configuration_spec.rb[1:1:2:1] | passed | 0.00019 seconds |
8
+ ./spec/lib/configuration_spec.rb[1:1:3:1] | passed | 0.00017 seconds |
9
9
  ./spec/lib/configuration_spec.rb[1:1:4:1] | passed | 0.00012 seconds |
10
- ./spec/lib/configuration_spec.rb[1:2:1:1] | passed | 0.0001 seconds |
11
- ./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.00013 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.00012 seconds |
14
- ./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.00327 seconds |
15
- ./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.00356 seconds |
16
- ./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.17753 seconds |
17
- ./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.00775 seconds |
18
- ./spec/requests/company_spec.rb[1:2:1] | passed | 0.00511 seconds |
19
- ./spec/requests/officers_spec.rb[1:1:1] | passed | 0.00648 seconds |
20
- ./spec/requests/officers_spec.rb[1:2:1] | passed | 0.01114 seconds |
21
- ./spec/requests/worldpay_spec.rb[1:1:1:1:1:1] | passed | 0.00492 seconds |
22
- ./spec/requests/worldpay_spec.rb[1:1:1:1:2:1] | passed | 0.0048 seconds |
23
- ./spec/requests/worldpay_spec.rb[1:1:1:2:1:1] | passed | 0.00696 seconds |
24
- ./spec/requests/worldpay_spec.rb[1:1:2:1:1:1] | passed | 0.00632 seconds |
25
- ./spec/requests/worldpay_spec.rb[1:1:2:1:2:1] | passed | 0.00646 seconds |
26
- ./spec/requests/worldpay_spec.rb[1:1:2:2:1:1] | passed | 0.00395 seconds |
27
- ./spec/requests/worldpay_spec.rb[1:2:1:1] | passed | 0.00195 seconds |
28
- ./spec/requests/worldpay_spec.rb[1:2:2:1] | passed | 0.00538 seconds |
29
- ./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.00015 seconds |
30
- ./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.00011 seconds |
31
- ./spec/services/companies_house_service_spec.rb[1:1:2:1:2] | passed | 0.00012 seconds |
32
- ./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.00012 seconds |
33
- ./spec/services/companies_house_service_spec.rb[1:1:2:2:2] | passed | 0.00011 seconds |
34
- ./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.00011 seconds |
35
- ./spec/services/companies_house_service_spec.rb[1:1:2:3:2] | passed | 0.00013 seconds |
36
- ./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.00012 seconds |
37
- ./spec/services/companies_house_service_spec.rb[1:1:2:4:2] | passed | 0.00012 seconds |
38
- ./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.00011 seconds |
10
+ ./spec/lib/configuration_spec.rb[1:2:1:1] | passed | 0.00018 seconds |
11
+ ./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.00011 seconds |
12
+ ./spec/lib/configuration_spec.rb[1:2:3:1] | passed | 0.00016 seconds |
13
+ ./spec/lib/configuration_spec.rb[1:2:4:1] | passed | 0.00095 seconds |
14
+ ./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.0082 seconds |
15
+ ./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.00528 seconds |
16
+ ./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.0048 seconds |
17
+ ./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.00472 seconds |
18
+ ./spec/requests/company_spec.rb[1:2:1] | passed | 0.00226 seconds |
19
+ ./spec/requests/officers_spec.rb[1:1:1] | passed | 0.00903 seconds |
20
+ ./spec/requests/officers_spec.rb[1:2:1] | passed | 0.00429 seconds |
21
+ ./spec/requests/worldpay_spec.rb[1:1:1:1:1:1] | passed | 0.00703 seconds |
22
+ ./spec/requests/worldpay_spec.rb[1:1:1:1:2:1] | passed | 0.00379 seconds |
23
+ ./spec/requests/worldpay_spec.rb[1:1:1:2:1:1] | passed | 0.03276 seconds |
24
+ ./spec/requests/worldpay_spec.rb[1:1:2:1:1:1] | passed | 0.00538 seconds |
25
+ ./spec/requests/worldpay_spec.rb[1:1:2:1:2:1] | passed | 0.0063 seconds |
26
+ ./spec/requests/worldpay_spec.rb[1:1:2:2:1:1] | passed | 0.00462 seconds |
27
+ ./spec/requests/worldpay_spec.rb[1:2:1:1] | passed | 0.01268 seconds |
28
+ ./spec/requests/worldpay_spec.rb[1:2:2:1] | passed | 0.0063 seconds |
29
+ ./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.00181 seconds |
30
+ ./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.0002 seconds |
31
+ ./spec/services/companies_house_service_spec.rb[1:1:2:1:2] | passed | 0.0001 seconds |
32
+ ./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.00009 seconds |
33
+ ./spec/services/companies_house_service_spec.rb[1:1:2:2:2] | passed | 0.00009 seconds |
34
+ ./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.0001 seconds |
35
+ ./spec/services/companies_house_service_spec.rb[1:1:2:3:2] | passed | 0.00009 seconds |
36
+ ./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.00014 seconds |
37
+ ./spec/services/companies_house_service_spec.rb[1:1:2:4:2] | passed | 0.00009 seconds |
38
+ ./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.00009 seconds |
39
39
  ./spec/services/companies_house_service_spec.rb[1:1:2:5:2] | passed | 0.00012 seconds |
40
- ./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.00015 seconds |
41
- ./spec/services/companies_house_service_spec.rb[1:1:2:6:2] | passed | 0.00013 seconds |
42
- ./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.00012 seconds |
43
- ./spec/services/companies_house_service_spec.rb[1:1:2:7:2] | passed | 0.00012 seconds |
44
- ./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.00015 seconds |
45
- ./spec/services/companies_house_service_spec.rb[1:1:2:8:2] | passed | 0.00015 seconds |
46
- ./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.00013 seconds |
47
- ./spec/services/companies_house_service_spec.rb[1:1:2:9:2] | passed | 0.0001 seconds |
48
- ./spec/services/companies_house_service_spec.rb[1:1:3:1] | passed | 0.00011 seconds |
49
- ./spec/services/companies_house_service_spec.rb[1:1:3:2] | passed | 0.00011 seconds |
50
- ./spec/services/companies_house_service_spec.rb[1:1:3:3] | passed | 0.00013 seconds |
51
- ./spec/services/companies_house_service_spec.rb[1:1:3:4] | passed | 0.00018 seconds |
52
- ./spec/services/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.00012 seconds |
53
- ./spec/services/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.00019 seconds |
54
- ./spec/services/worldpay_payment_service_spec.rb[1:1:1:1] | passed | 0.0002 seconds |
55
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:1] | passed | 0.00041 seconds |
56
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:2] | passed | 0.00043 seconds |
40
+ ./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.00009 seconds |
41
+ ./spec/services/companies_house_service_spec.rb[1:1:2:6:2] | passed | 0.00014 seconds |
42
+ ./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.00009 seconds |
43
+ ./spec/services/companies_house_service_spec.rb[1:1:2:7:2] | passed | 0.0001 seconds |
44
+ ./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.0001 seconds |
45
+ ./spec/services/companies_house_service_spec.rb[1:1:2:8:2] | passed | 0.00009 seconds |
46
+ ./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.00012 seconds |
47
+ ./spec/services/companies_house_service_spec.rb[1:1:2:9:2] | passed | 0.00017 seconds |
48
+ ./spec/services/companies_house_service_spec.rb[1:1:3:1] | passed | 0.1475 seconds |
49
+ ./spec/services/companies_house_service_spec.rb[1:1:3:2] | passed | 0.00015 seconds |
50
+ ./spec/services/companies_house_service_spec.rb[1:1:3:3] | passed | 0.00014 seconds |
51
+ ./spec/services/companies_house_service_spec.rb[1:1:3:4] | passed | 0.00009 seconds |
52
+ ./spec/services/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.00017 seconds |
53
+ ./spec/services/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.00015 seconds |
54
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:1:1] | passed | 0.00017 seconds |
55
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:1] | passed | 0.00108 seconds |
56
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:2] | passed | 0.00032 seconds |
57
57
  ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:3] | passed | 0.00032 seconds |
58
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:4] | passed | 0.00033 seconds |
59
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:1] | passed | 0.00028 seconds |
60
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:2] | passed | 0.00029 seconds |
61
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:3] | passed | 0.00043 seconds |
62
- ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:6:1] | passed | 0.00033 seconds |
63
- ./spec/services/worldpay_payment_service_spec.rb[1:1:3:1] | passed | 0.00046 seconds |
64
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:1] | passed | 0.00034 seconds |
65
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:2] | passed | 0.00034 seconds |
66
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:3] | passed | 0.00034 seconds |
67
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:4] | passed | 0.00031 seconds |
68
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:5] | passed | 0.00038 seconds |
69
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:6] | passed | 0.00034 seconds |
70
- ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:7] | passed | 0.00052 seconds |
71
- ./spec/services/worldpay_refund_service_spec.rb[1:1:2:1] | passed | 0.00033 seconds |
72
- ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:1] | passed | 0.00976 seconds |
73
- ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:2] | passed | 0.00109 seconds |
74
- ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:1] | passed | 0.00085 seconds |
75
- ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:2] | passed | 0.00077 seconds |
76
- ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:3:1] | passed | 0.00066 seconds |
77
- ./spec/services/worldpay_resource_service_spec.rb[1:1:1:1] | passed | 0.0016 seconds |
78
- ./spec/services/worldpay_resource_service_spec.rb[1:1:1:2] | passed | 0.00082 seconds |
79
- ./spec/services/worldpay_resource_service_spec.rb[1:1:1:3] | passed | 0.00088 seconds |
80
- ./spec/services/worldpay_resource_service_spec.rb[1:1:1:4] | passed | 0.00072 seconds |
81
- ./spec/services/worldpay_resource_service_spec.rb[1:1:2:1] | passed | 0.00279 seconds |
82
- ./spec/services/worldpay_resource_service_spec.rb[1:1:2:2] | passed | 0.0011 seconds |
83
- ./spec/services/worldpay_resource_service_spec.rb[1:1:2:3] | passed | 0.00162 seconds |
84
- ./spec/services/worldpay_resource_service_spec.rb[1:1:2:4] | passed | 0.00111 seconds |
85
- ./spec/services/worldpay_resource_service_spec.rb[1:1:3:1] | passed | 0.00188 seconds |
86
- ./spec/services/worldpay_resource_service_spec.rb[1:1:4:1] | passed | 0.00076 seconds |
87
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:1] | passed | 0.00085 seconds |
88
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:2] | passed | 0.00092 seconds |
89
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:1] | passed | 0.00088 seconds |
90
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:2] | passed | 0.00073 seconds |
91
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:1] | passed | 0.00065 seconds |
92
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:2] | passed | 0.00074 seconds |
93
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:1] | passed | 0.00065 seconds |
94
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:2] | passed | 0.00065 seconds |
95
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:1] | passed | 0.00084 seconds |
96
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:2] | passed | 0.0011 seconds |
97
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:1] | passed | 0.0008 seconds |
98
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:2] | passed | 0.00085 seconds |
99
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:1] | passed | 0.00072 seconds |
100
- ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:2] | passed | 0.0011 seconds |
101
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:1] | passed | 0.00062 seconds |
102
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:2] | passed | 0.00074 seconds |
103
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:1] | passed | 0.00063 seconds |
104
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:2] | passed | 0.00068 seconds |
105
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:1] | passed | 0.00066 seconds |
106
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:2] | passed | 0.00073 seconds |
107
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:1] | passed | 0.00081 seconds |
108
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:2] | passed | 0.00072 seconds |
109
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:1] | passed | 0.0008 seconds |
110
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:2] | passed | 0.00088 seconds |
111
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:1] | passed | 0.00072 seconds |
112
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:2] | passed | 0.0009 seconds |
113
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:1] | passed | 0.00093 seconds |
114
- ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:2] | passed | 0.00122 seconds |
58
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:4] | passed | 0.00038 seconds |
59
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:1] | passed | 0.00038 seconds |
60
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:2] | passed | 0.00035 seconds |
61
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:3] | passed | 0.00044 seconds |
62
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:6:1] | passed | 0.00031 seconds |
63
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:3:1] | passed | 0.00042 seconds |
64
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:1] | passed | 0.00033 seconds |
65
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:2] | passed | 0.00042 seconds |
66
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:3] | passed | 0.00041 seconds |
67
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:4] | passed | 0.0006 seconds |
68
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:5] | passed | 0.00052 seconds |
69
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:6] | passed | 0.00038 seconds |
70
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:7] | passed | 0.0004 seconds |
71
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:2:1] | passed | 0.00045 seconds |
72
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:1] | passed | 0.00111 seconds |
73
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:2] | passed | 0.00087 seconds |
74
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:1] | passed | 0.00057 seconds |
75
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:2] | passed | 0.00058 seconds |
76
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:3:1] | passed | 0.00036 seconds |
77
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:1] | passed | 0.00218 seconds |
78
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:2] | passed | 0.00074 seconds |
79
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:3] | passed | 0.00864 seconds |
80
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:4] | passed | 0.00076 seconds |
81
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:1] | passed | 0.00095 seconds |
82
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:2] | passed | 0.0008 seconds |
83
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:3] | passed | 0.001 seconds |
84
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:4] | passed | 0.0007 seconds |
85
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:3:1] | passed | 0.00136 seconds |
86
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:4:1] | passed | 0.00066 seconds |
87
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:1] | passed | 0.00063 seconds |
88
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:2] | passed | 0.00064 seconds |
89
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:1] | passed | 0.00072 seconds |
90
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:2] | passed | 0.00069 seconds |
91
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:1] | passed | 0.0006 seconds |
92
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:2] | passed | 0.00066 seconds |
93
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:1] | passed | 0.00074 seconds |
94
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:2] | passed | 0.0006 seconds |
95
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:1] | passed | 0.00136 seconds |
96
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:2] | passed | 0.00105 seconds |
97
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:1] | passed | 0.00063 seconds |
98
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:2] | passed | 0.00067 seconds |
99
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:1] | passed | 0.00066 seconds |
100
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:2] | passed | 0.00069 seconds |
101
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:1] | passed | 0.0007 seconds |
102
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:2] | passed | 0.00087 seconds |
103
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:1] | passed | 0.00795 seconds |
104
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:2] | passed | 0.00075 seconds |
105
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:1] | passed | 0.00078 seconds |
106
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:2] | passed | 0.00076 seconds |
107
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:1] | passed | 0.00093 seconds |
108
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:2] | passed | 0.00095 seconds |
109
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:1] | passed | 0.00073 seconds |
110
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:2] | passed | 0.00084 seconds |
111
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:1] | passed | 0.00063 seconds |
112
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:2] | passed | 0.0007 seconds |
113
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:1] | passed | 0.00104 seconds |
114
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:2] | passed | 0.00113 seconds |
@@ -24,7 +24,7 @@ module DefraRubyMocks
24
24
  let(:data) { File.read("spec/fixtures/payment_request_valid.xml") }
25
25
 
26
26
  it "returns an XML response with a 200 code" do
27
- get path, headers: { "RAW_POST_DATA" => data }
27
+ post path, headers: { "RAW_POST_DATA" => data }
28
28
 
29
29
  expect(response.media_type).to eq("application/xml")
30
30
  expect(response.code).to eq("200")
@@ -36,7 +36,7 @@ module DefraRubyMocks
36
36
  let(:data) { File.read("spec/fixtures/payment_request_invalid.xml") }
37
37
 
38
38
  it "returns a response with a 500 code" do
39
- get path, headers: { "RAW_POST_DATA" => data }
39
+ post path, headers: { "RAW_POST_DATA" => data }
40
40
 
41
41
  expect(response.code).to eq("500")
42
42
  end
@@ -48,7 +48,7 @@ module DefraRubyMocks
48
48
  let(:data) { File.read("spec/fixtures/refund_request_valid.xml") }
49
49
 
50
50
  it "returns an XML response with a 200 code" do
51
- get path, headers: { "RAW_POST_DATA" => data }
51
+ post path, headers: { "RAW_POST_DATA" => data }
52
52
 
53
53
  expect(response.media_type).to eq("application/xml")
54
54
  expect(response.code).to eq("200")
@@ -75,7 +75,6 @@ module DefraRubyMocks
75
75
 
76
76
  context "and is for a successful payment" do
77
77
  it "can generate a valid mac" do
78
- puts "Test data #{mac_data.join}"
79
78
  expect(described_class.run(args).mac).to eq(mac)
80
79
  end
81
80
 
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: 2.2.0
4
+ version: 2.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: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -245,7 +245,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
245
245
  requirements:
246
246
  - - ">="
247
247
  - !ruby/object:Gem::Version
248
- version: '0'
248
+ version: '2.4'
249
249
  required_rubygems_version: !ruby/object:Gem::Requirement
250
250
  requirements:
251
251
  - - ">="