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.
- checksums.yaml +4 -4
- data/app/services/defra_ruby_mocks/worldpay_resource_service.rb +2 -2
- data/app/services/defra_ruby_mocks/worldpay_response_service.rb +2 -0
- data/lib/defra_ruby_mocks/version.rb +1 -1
- data/spec/dummy/log/test.log +810 -2522
- data/spec/examples.txt +114 -112
- data/spec/services/worldpay_resource_service_spec.rb +8 -0
- data/spec/services/worldpay_response_service_spec.rb +9 -1
- metadata +5 -5
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.
|
4
|
-
./spec/defra_ruby_mocks_spec.rb[1:2:1:1] | passed | 0.
|
5
|
-
./spec/defra_ruby_mocks_spec.rb[1:2:2:1] | passed | 0.
|
6
|
-
./spec/lib/configuration_spec.rb[1:1:1:1] | passed | 0.
|
7
|
-
./spec/lib/configuration_spec.rb[1:1:2:1] | passed | 0.
|
8
|
-
./spec/lib/configuration_spec.rb[1:1:3:1] | passed | 0.
|
9
|
-
./spec/lib/configuration_spec.rb[1:1:4:1] | passed | 0.
|
10
|
-
./spec/lib/configuration_spec.rb[1:2:1:1] | passed | 0.
|
11
|
-
./spec/lib/configuration_spec.rb[1:2:2:1] | passed | 0.
|
12
|
-
./spec/lib/configuration_spec.rb[1:2:3:1] | passed | 0.
|
13
|
-
./spec/lib/configuration_spec.rb[1:2:4:1] | passed | 0.
|
14
|
-
./spec/requests/company_spec.rb[1:1:1:1] | passed | 0.
|
15
|
-
./spec/requests/company_spec.rb[1:1:2:1] | passed | 0.
|
16
|
-
./spec/requests/company_spec.rb[1:1:3:1:1] | passed | 0.
|
17
|
-
./spec/requests/company_spec.rb[1:1:3:2:1] | passed | 0.
|
18
|
-
./spec/requests/company_spec.rb[1:2:1] | passed | 0.
|
19
|
-
./spec/requests/officers_spec.rb[1:1:1] | passed | 0.
|
20
|
-
./spec/requests/officers_spec.rb[1:2:1] | passed | 0.
|
21
|
-
./spec/requests/worldpay_spec.rb[1:1:1:1:1:1] | passed | 0.
|
22
|
-
./spec/requests/worldpay_spec.rb[1:1:1:1:2:1] | passed | 0.
|
23
|
-
./spec/requests/worldpay_spec.rb[1:1:1:2:1:1] | passed | 0.
|
24
|
-
./spec/requests/worldpay_spec.rb[1:1:2:1:1:1] | passed | 0.
|
25
|
-
./spec/requests/worldpay_spec.rb[1:1:2:1:2:1] | passed | 0.
|
26
|
-
./spec/requests/worldpay_spec.rb[1:1:2:2:1:1] | passed | 0.
|
27
|
-
./spec/requests/worldpay_spec.rb[1:2:1:1] | passed | 0.
|
28
|
-
./spec/requests/worldpay_spec.rb[1:2:2:1] | passed | 0.
|
29
|
-
./spec/services/companies_house_service_spec.rb[1:1:1:1] | passed | 0.
|
30
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:1:1] | passed | 0.
|
31
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:1:2] | passed | 0.
|
32
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:2:1] | passed | 0.
|
33
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:2:2] | passed | 0.
|
34
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:3:1] | passed | 0.
|
35
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:3:2] | passed | 0.
|
36
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:4:1] | passed | 0.
|
37
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:4:2] | passed | 0.
|
38
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:5:1] | passed | 0.
|
39
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:5:2] | passed | 0.
|
40
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:6:1] | passed | 0.
|
41
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:6:2] | passed | 0.
|
42
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:7:1] | passed | 0.
|
43
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:7:2] | passed | 0.
|
44
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:8:1] | passed | 0.
|
45
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:8:2] | passed | 0.
|
46
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:9:1] | passed | 0.
|
47
|
-
./spec/services/companies_house_service_spec.rb[1:1:2:9:2] | passed | 0.
|
48
|
-
./spec/services/companies_house_service_spec.rb[1:1:3:1] | passed | 0.
|
49
|
-
./spec/services/companies_house_service_spec.rb[1:1:3:2] | passed | 0.
|
50
|
-
./spec/services/companies_house_service_spec.rb[1:1:3:3] | passed | 0.
|
51
|
-
./spec/services/companies_house_service_spec.rb[1:1:3:4] | passed | 0.
|
52
|
-
./spec/services/companies_house_service_spec.rb[1:1:4:1:1] | passed | 0.
|
53
|
-
./spec/services/companies_house_service_spec.rb[1:1:4:2:1] | passed | 0.
|
54
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:1:1] | passed | 0.
|
55
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:1] | passed | 0.
|
56
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:2] | passed | 0.
|
57
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:3] | passed | 0.
|
58
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:4] | passed | 0.
|
59
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:1] | passed | 0.
|
60
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:2] | passed | 0.
|
61
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:5:3] | passed | 0.
|
62
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:2:1:6:1] | passed | 0.
|
63
|
-
./spec/services/worldpay_payment_service_spec.rb[1:1:3:1] | passed | 0.
|
64
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:1] | passed | 0.
|
65
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:2] | passed | 0.
|
66
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:3] | passed | 0.
|
67
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:4] | passed | 0.
|
68
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:5] | passed | 0.
|
69
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:6] | passed | 0.
|
70
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:1:1:7] | passed | 0.
|
71
|
-
./spec/services/worldpay_refund_service_spec.rb[1:1:2:1] | passed | 0.
|
72
|
-
./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:1] | passed | 0.
|
73
|
-
./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:1:2] | passed | 0.
|
74
|
-
./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:1] | passed | 0.
|
75
|
-
./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:2:2] | passed | 0.
|
76
|
-
./spec/services/worldpay_request_handler_service_spec.rb[1:1:1:3:1] | passed | 0.
|
77
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:1:1] | passed | 0.
|
78
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:1:2] | passed | 0.
|
79
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:1:3] | passed | 0.
|
80
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:1:4] | passed | 0.
|
81
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:
|
82
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:2:
|
83
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:2:
|
84
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:2:
|
85
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:
|
86
|
-
./spec/services/worldpay_resource_service_spec.rb[1:1:
|
87
|
-
./spec/services/
|
88
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
89
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
90
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:3:
|
91
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
92
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
93
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
94
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
95
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
96
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
97
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
98
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
99
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
100
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:1:1:
|
101
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:
|
102
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:
|
103
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
104
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
105
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
106
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
107
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
108
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
109
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
110
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
111
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
112
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
113
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
114
|
-
./spec/services/worldpay_response_service_spec.rb[1:1:2:1:
|
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
|
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.
|
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-
|
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:
|