Sha256: fdb6d88e707e9fbcbed6ef352b8ec0e84adb7012d8e2a59daf785c3dfe31deb6
Contents?: true
Size: 476 Bytes
Versions: 15
Compression:
Stored size: 476 Bytes
Contents
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
Version data entries
15 entries across 15 versions & 1 rubygems