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

Version Path
stripe-1.57.1 test/stripe/source_test.rb
stripe-1.57.0 test/stripe/source_test.rb
stripe-1.56.2 test/stripe/source_test.rb
stripe-1.56.1 test/stripe/source_test.rb
stripe-1.56.0 test/stripe/source_test.rb
stripe-1.55.1 test/stripe/source_test.rb
stripe-1.55.0 test/stripe/source_test.rb
stripe-1.54.0 test/stripe/source_test.rb
stripe-1.53.0 test/stripe/source_test.rb
stripe-1.52.0 test/stripe/source_test.rb
stripe-1.51.1 test/stripe/source_test.rb
stripe-1.51.0 test/stripe/source_test.rb
stripe-1.50.1 test/stripe/source_test.rb
stripe-1.50.0 test/stripe/source_test.rb
stripe-1.49.0 test/stripe/source_test.rb