govuk-pay-api-client 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/govuk_pay_api_client/version.rb +1 -1
- data/shared_examples/shared_examples_for_govpay.rb +0 -24
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cada91da0306f1f94cc1f828af006f6a1167c7df
|
4
|
+
data.tar.gz: 03460adac2e545abeade816ab446ad158cfa033e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0019f43b51d895a7be1fe40c1a7e413042dd01fce826af6a14533605aada023f5dcfa91f405a0f98c3b61832357073038e28110d808bcd91ea47c4bb1662bf7e
|
7
|
+
data.tar.gz: f7a60b8e1587fbb2a8258fae9833e351d74658ed855b01bbf32674404ab26ad9f895afc972104338f794ae779efa24d0fad91619269fae2bcb2567760e917cca
|
data/.gitignore
CHANGED
@@ -1,29 +1,5 @@
|
|
1
1
|
module GovpayExample
|
2
2
|
module Mocks
|
3
|
-
def glimr_api_call
|
4
|
-
class_double(
|
5
|
-
Excon,
|
6
|
-
'glimr availability check',
|
7
|
-
post: instance_double(
|
8
|
-
Excon::Response,
|
9
|
-
status: 200,
|
10
|
-
body: { glimrAvailable: 'yes' }.to_json
|
11
|
-
)
|
12
|
-
)
|
13
|
-
end
|
14
|
-
|
15
|
-
def a_create_payment_success(initial_payment_response)
|
16
|
-
class_double(
|
17
|
-
Excon,
|
18
|
-
'glimr availability check',
|
19
|
-
post: instance_double(
|
20
|
-
Excon::Response,
|
21
|
-
status: 200,
|
22
|
-
body: initial_payment_response
|
23
|
-
)
|
24
|
-
)
|
25
|
-
end
|
26
|
-
|
27
3
|
def a_create_payment_timeout
|
28
4
|
class_double(Excon, 'create payment timeout').tap { |ex|
|
29
5
|
expect(ex).to receive(:post).and_raise(Excon::Errors::Timeout)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-pay-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Tyree
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.6.6
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: An API client to handle Govuk Pay interactions
|