Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.512 kb
require 'spec_helper'
describe GoCardless::Subscription 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::Subscription.new_with_client(@client, :id => '009988')
@client.expects(:api_put).with('/subscriptions/009988/cancel')
s.cancel!
end
end
Jump to Line
Something went wrong with that request. Please try again.