Sha256: 2c2f1a37809aab5952d8ac1abfe12cfbeb0e45a741278dee142fea90b14a1c00

Contents?: true

Size: 533 Bytes

Versions: 40

Compression:

Stored size: 533 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Stripe
  class BankAccountTest < Test::Unit::TestCase

    should 'be verifiable' do
      bank = Stripe::BankAccount.construct_from({
        :id => 'ba_foo',
        :customer => 'cus_bar'
      })

      @mock.expects(:post).
        once.
        with('https://api.stripe.com/v1/customers/cus_bar/sources/ba_foo/verify', nil, 'amounts[]=1&amounts[]=2').
        returns(make_response(:status => 'verified'))

      bank.verify(:amounts => [1,2])
    end

  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
stripe-1.58.0 test/stripe/bank_account_test.rb
stripe-1.57.1 test/stripe/bank_account_test.rb
stripe-1.57.0 test/stripe/bank_account_test.rb
stripe-1.56.2 test/stripe/bank_account_test.rb
stripe-1.56.1 test/stripe/bank_account_test.rb
stripe-1.56.0 test/stripe/bank_account_test.rb
stripe-1.55.1 test/stripe/bank_account_test.rb
stripe-1.55.0 test/stripe/bank_account_test.rb
stripe-1.54.0 test/stripe/bank_account_test.rb
stripe-1.53.0 test/stripe/bank_account_test.rb
stripe-1.52.0 test/stripe/bank_account_test.rb
stripe-1.51.1 test/stripe/bank_account_test.rb
stripe-1.51.0 test/stripe/bank_account_test.rb
stripe-1.50.1 test/stripe/bank_account_test.rb
stripe-1.50.0 test/stripe/bank_account_test.rb
stripe-1.49.0 test/stripe/bank_account_test.rb
stripe-1.48.0 test/stripe/bank_account_test.rb
stripe-1.47.0 test/stripe/bank_account_test.rb
stripe-1.46.0 test/stripe/bank_account_test.rb
stripe-1.45.0 test/stripe/bank_account_test.rb