Sha256: 962940be385fd36da17da6f0f11f76528e1990ea02bfa6b5b76e0541abc25dfc

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rainforest-1.0.1 test/stripe/account_test.rb