mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-06 00:02:18 -04:00
19 lines
476 B
Ruby
19 lines
476 B
Ruby
require File.expand_path('../../test_helper', __FILE__)
|
|
|
|
module Stripe
|
|
class SourceTest < Test::Unit::TestCase
|
|
should 'be verifiable' do
|
|
source = Stripe::Source.construct_from({
|
|
:id => 'ba_foo',
|
|
})
|
|
|
|
@mock.expects(:post).
|
|
once.
|
|
with('https://api.stripe.com/v1/sources/ba_foo/verify', nil, 'amounts[]=1&amounts[]=2').
|
|
returns(make_response(:status => 'verified'))
|
|
|
|
source.verify(:amounts => [1,2])
|
|
end
|
|
end
|
|
end
|