Sha256: f017da62641b39db20f1645b93e7c635039bbbe882cb857677eb6ce9b9e932c9

Contents?: true

Size: 499 Bytes

Versions: 11

Compression:

Stored size: 499 Bytes

Contents

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

module Stripe
  class AccountTest < Test::Unit::TestCase
    should "account should be retrievable" do
      resp = {:email => "test+bindings@stripe.com", :charge_enabled => false, :details_submitted => false}
      @mock.expects(:get).once.returns(test_response(resp))
      a = Stripe::Account.retrieve
      assert_equal "test+bindings@stripe.com", a.email
      assert !a.charge_enabled
      assert !a.details_submitted
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
stripe-1.16.1 test/stripe/account_test.rb
stripe-1.16.0 test/stripe/account_test.rb
stripe-1.15.0 test/stripe/account_test.rb
stripe-1.14.0 test/stripe/account_test.rb
stripe-1.13.0 test/stripe/account_test.rb
stripe-1.12.0 test/stripe/account_test.rb
stripe-1.11.0 test/stripe/account_test.rb
stripe-1.10.1 test/stripe/account_test.rb
stripe-1.10.0 test/stripe/account_test.rb
stripe-1.9.9 test/stripe/account_test.rb
stripe-1.8.8 test/stripe/account_test.rb