gocardless 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +5 -0
- data/lib/gocardless/bill.rb +1 -1
- data/lib/gocardless/pre_authorization.rb +6 -0
- data/lib/gocardless/version.rb +1 -1
- data/spec/pre_authorization_spec.rb +18 -0
- metadata +7 -5
data/CHANGELOG.md
CHANGED
data/lib/gocardless/bill.rb
CHANGED
data/lib/gocardless/version.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe GoCardless::PreAuthorization do
|
4
|
+
before :each do
|
5
|
+
@app_id = 'abc'
|
6
|
+
@app_secret = 'xyz'
|
7
|
+
GoCardless.account_details = {:app_id => @app_id, :app_secret => @app_secret,
|
8
|
+
:token => 'xxx manage_merchant:1'}
|
9
|
+
@client = GoCardless.client
|
10
|
+
end
|
11
|
+
|
12
|
+
it "should be cancellable" do
|
13
|
+
s = GoCardless::PreAuthorization.new_with_client(@client, :id => '009988')
|
14
|
+
@client.expects(:api_put).with('/pre_authorizations/009988/cancel')
|
15
|
+
s.cancel!
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gocardless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1414572536435516772
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 1.
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 1.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Harry Marr
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-
|
19
|
+
date: 2012-08-30 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: oauth2
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- spec/client_spec.rb
|
148
148
|
- spec/gocardless_spec.rb
|
149
149
|
- spec/merchant_spec.rb
|
150
|
+
- spec/pre_authorization_spec.rb
|
150
151
|
- spec/resource_spec.rb
|
151
152
|
- spec/spec_helper.rb
|
152
153
|
- spec/subscription_spec.rb
|
@@ -189,6 +190,7 @@ test_files:
|
|
189
190
|
- spec/client_spec.rb
|
190
191
|
- spec/gocardless_spec.rb
|
191
192
|
- spec/merchant_spec.rb
|
193
|
+
- spec/pre_authorization_spec.rb
|
192
194
|
- spec/resource_spec.rb
|
193
195
|
- spec/spec_helper.rb
|
194
196
|
- spec/subscription_spec.rb
|