Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 525 Bytes
require 'spec_helper'
describe GoCardless::PreAuthorization do
before :each do
@app_id = 'abc'
@app_secret = 'xyz'
GoCardless.account_details = {:app_id => @app_id, :app_secret => @app_secret,
:token => 'xxx manage_merchant:1'}
@client = GoCardless.client
end
it "should be cancellable" do
s = GoCardless::PreAuthorization.new_with_client(@client, :id => '009988')
@client.expects(:api_put).with('/pre_authorizations/009988/cancel')
s.cancel!
end
end
Jump to Line
Something went wrong with that request. Please try again.