defra_ruby_mocks 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/spec/examples.txt CHANGED
@@ -1,114 +1,116 @@
1
1
  example_id | status | run_time |
2
2
  ------------------------------------------------------------------- | ------ | --------------- |
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
- ./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.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
- ./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.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
- ./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.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
- ./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.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 |
3
+ ./spec/defra_ruby_mocks_spec.rb[1:1:1] | passed | 0.00189 seconds |
4
+ ./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.00011 seconds |
5
+ ./spec/defra_ruby_mocks_spec.rb[1:2:2:1] | passed | 0.00012 seconds |
6
+ ./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.0001 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.00008 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.00008 seconds |
11
+ ./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.00088 seconds |
12
+ ./spec/lib/configuration_spec.rb[1:2:3:1] | passed | 0.00008 seconds |
13
+ ./spec/lib/configuration_spec.rb[1:2:4:1] | passed | 0.00008 seconds |
14
+ ./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.0019 seconds |
15
+ ./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.00201 seconds |
16
+ ./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.0046 seconds |
17
+ ./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.00526 seconds |
18
+ ./spec/requests/company_spec.rb[1:2:1] | passed | 0.00309 seconds |
19
+ ./spec/requests/officers_spec.rb[1:1:1] | passed | 0.00328 seconds |
20
+ ./spec/requests/officers_spec.rb[1:2:1] | passed | 0.00118 seconds |
21
+ ./spec/requests/worldpay_spec.rb[1:1:1:1:1:1] | passed | 0.01098 seconds |
22
+ ./spec/requests/worldpay_spec.rb[1:1:1:1:2:1] | passed | 0.00331 seconds |
23
+ ./spec/requests/worldpay_spec.rb[1:1:1:2:1:1] | passed | 0.00337 seconds |
24
+ ./spec/requests/worldpay_spec.rb[1:1:2:1:1:1] | passed | 0.00427 seconds |
25
+ ./spec/requests/worldpay_spec.rb[1:1:2:1:2:1] | passed | 0.0222 seconds |
26
+ ./spec/requests/worldpay_spec.rb[1:1:2:2:1:1] | passed | 0.0023 seconds |
27
+ ./spec/requests/worldpay_spec.rb[1:2:1:1] | passed | 0.01006 seconds |
28
+ ./spec/requests/worldpay_spec.rb[1:2:2:1] | passed | 0.00463 seconds |
29
+ ./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.00011 seconds |
30
+ ./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.00007 seconds |
31
+ ./spec/services/companies_house_service_spec.rb[1:1:2:1:2] | passed | 0.00009 seconds |
32
+ ./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.00008 seconds |
33
+ ./spec/services/companies_house_service_spec.rb[1:1:2:2:2] | passed | 0.00008 seconds |
34
+ ./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.00008 seconds |
35
+ ./spec/services/companies_house_service_spec.rb[1:1:2:3:2] | passed | 0.00007 seconds |
36
+ ./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.00008 seconds |
37
+ ./spec/services/companies_house_service_spec.rb[1:1:2:4:2] | passed | 0.00007 seconds |
38
+ ./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.00008 seconds |
39
+ ./spec/services/companies_house_service_spec.rb[1:1:2:5:2] | passed | 0.00007 seconds |
40
+ ./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.00008 seconds |
41
+ ./spec/services/companies_house_service_spec.rb[1:1:2:6:2] | passed | 0.00008 seconds |
42
+ ./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.00008 seconds |
43
+ ./spec/services/companies_house_service_spec.rb[1:1:2:7:2] | passed | 0.00007 seconds |
44
+ ./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.00008 seconds |
45
+ ./spec/services/companies_house_service_spec.rb[1:1:2:8:2] | passed | 0.00008 seconds |
46
+ ./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.00009 seconds |
47
+ ./spec/services/companies_house_service_spec.rb[1:1:2:9:2] | passed | 0.00008 seconds |
48
+ ./spec/services/companies_house_service_spec.rb[1:1:3:1] | passed | 0.00009 seconds |
49
+ ./spec/services/companies_house_service_spec.rb[1:1:3:2] | passed | 0.0001 seconds |
50
+ ./spec/services/companies_house_service_spec.rb[1:1:3:3] | passed | 0.00008 seconds |
51
+ ./spec/services/companies_house_service_spec.rb[1:1:3:4] | passed | 0.00008 seconds |
52
+ ./spec/services/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.00009 seconds |
53
+ ./spec/services/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.0001 seconds |
54
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:1:1] | passed | 0.00011 seconds |
55
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:1] | passed | 0.00031 seconds |
56
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:2] | passed | 0.00033 seconds |
57
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:3] | passed | 0.00033 seconds |
58
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:4] | passed | 0.00032 seconds |
59
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:1] | passed | 0.00031 seconds |
60
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:2] | passed | 0.00034 seconds |
61
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:3] | passed | 0.00041 seconds |
62
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:6:1] | passed | 0.00035 seconds |
63
+ ./spec/services/worldpay_payment_service_spec.rb[1:1:3:1] | passed | 0.00029 seconds |
64
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:1] | passed | 0.00169 seconds |
65
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:2] | passed | 0.00205 seconds |
66
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:3] | passed | 0.00047 seconds |
67
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:4] | passed | 0.00034 seconds |
68
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:5] | passed | 0.00037 seconds |
69
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:6] | passed | 0.00036 seconds |
70
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:7] | passed | 0.00038 seconds |
71
+ ./spec/services/worldpay_refund_service_spec.rb[1:1:2:1] | passed | 0.00072 seconds |
72
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:1] | passed | 0.00074 seconds |
73
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:2] | passed | 0.00074 seconds |
74
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:1] | passed | 0.00058 seconds |
75
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:2] | passed | 0.00074 seconds |
76
+ ./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:3:1] | passed | 0.00074 seconds |
77
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:1] | passed | 0.00056 seconds |
78
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:2] | passed | 0.00051 seconds |
79
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:3] | passed | 0.0005 seconds |
80
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:4] | passed | 0.00047 seconds |
81
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:1:5:1] | passed | 0.00048 seconds |
82
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:1] | passed | 0.00158 seconds |
83
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:2] | passed | 0.00129 seconds |
84
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:3] | passed | 0.00057 seconds |
85
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:2:4] | passed | 0.00053 seconds |
86
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:3:1] | passed | 0.00094 seconds |
87
+ ./spec/services/worldpay_resource_service_spec.rb[1:1:4:1] | passed | 0.1673 seconds |
88
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:1] | passed | 0.00048 seconds |
89
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:2] | passed | 0.00061 seconds |
90
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:1] | passed | 0.00048 seconds |
91
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:2] | passed | 0.00053 seconds |
92
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:3:1] | passed | 0.00047 seconds |
93
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:1] | passed | 0.00044 seconds |
94
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:4:2] | passed | 0.00046 seconds |
95
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:1] | passed | 0.00048 seconds |
96
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:5:2] | passed | 0.00042 seconds |
97
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:1] | passed | 0.00046 seconds |
98
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:6:2] | passed | 0.00051 seconds |
99
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:1] | passed | 0.00044 seconds |
100
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:7:2] | passed | 0.00047 seconds |
101
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:1] | passed | 0.00046 seconds |
102
+ ./spec/services/worldpay_response_service_spec.rb[1:1:1:1:8:2] | passed | 0.00049 seconds |
103
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:1] | passed | 0.0005 seconds |
104
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:2] | passed | 0.0005 seconds |
105
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:1] | passed | 0.00046 seconds |
106
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:3:2] | passed | 0.0005 seconds |
107
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:1] | passed | 0.00046 seconds |
108
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:4:2] | passed | 0.00046 seconds |
109
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:1] | passed | 0.00045 seconds |
110
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:5:2] | passed | 0.00047 seconds |
111
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:1] | passed | 0.00048 seconds |
112
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:6:2] | passed | 0.00049 seconds |
113
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:1] | passed | 0.00046 seconds |
114
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:7:2] | passed | 0.00047 seconds |
115
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:1] | passed | 0.00052 seconds |
116
+ ./spec/services/worldpay_response_service_spec.rb[1:1:2:1:8:2] | passed | 0.00056 seconds |
@@ -44,6 +44,14 @@ module DefraRubyMocks
44
44
  it "returns an object with the expected company name" do
45
45
  expect(described_class.run(args).company_name).to eq(company_name.downcase)
46
46
  end
47
+
48
+ context "when the company name is not populated" do
49
+ let(:company_name) { nil }
50
+
51
+ it "returns the object" do
52
+ expect(described_class.run(args).resource).to eq(resource)
53
+ end
54
+ end
47
55
  end
48
56
 
49
57
  context "when the resource is a Registration" do
@@ -16,7 +16,7 @@ module DefraRubyMocks
16
16
  allow(WorldpayResourceService).to receive(:run) { resource }
17
17
  end
18
18
 
19
- let(:resource) { double(:resource, order: order, company_name: company_name.downcase) }
19
+ let(:resource) { double(:resource, order: order, company_name: company_name&.downcase) }
20
20
 
21
21
  let(:admin_code) { "admincode1" }
22
22
  let(:merchant_code) { "merchantcode1" }
@@ -83,6 +83,14 @@ module DefraRubyMocks
83
83
 
84
84
  expect(described_class.run(args).url).to eq(expected_response_url)
85
85
  end
86
+
87
+ context "and the company name is blank" do
88
+ let(:company_name) { nil }
89
+
90
+ it "can extract the reference from the `success_url`" do
91
+ expect(described_class.run(args).reference).to eq(reference)
92
+ end
93
+ end
86
94
  end
87
95
 
88
96
  context "and is for a rejected payment" do
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.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Defra
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-29 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -237,7 +237,7 @@ homepage: https://github.com/DEFRA/defra-ruby-mocks
237
237
  licenses:
238
238
  - The Open Government Licence (OGL) Version 3
239
239
  metadata: {}
240
- post_install_message:
240
+ post_install_message:
241
241
  rdoc_options: []
242
242
  require_paths:
243
243
  - lib
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  version: '0'
254
254
  requirements: []
255
255
  rubygems_version: 3.1.2
256
- signing_key:
256
+ signing_key:
257
257
  specification_version: 4
258
258
  summary: Defra Ruby on Rails external API mocking engine
259
259
  test_files: