require "spec_helper"

describe "Geezeo accounts" do
  before(:each) do
    @client = Geezeo.client(credentials["api_key"], credentials["user_id"])
  end


  it "gets a list of accounts" do
    @account = @client.accounts.all.first

    @account.id.should_not be_nil
  end
end

require "spec_helper"

describe "Geezeo accounts" do
  before(:each) do
    @geezeo = Geezeo.client(credentials["api_key"], credentials["user_id"])
  end

  it "gets a list of accounts" do
    @account = @geezeo.accounts.all.first

    @account.id.should_not be_nil
  end

  it "gets the sum of all account balances" do
    @balance = @geezeo.accounts.sum_of_balances

    @balance.should be_kind_of(Float)
  end
end

Add second test 'it gets the sum of allaccount balances'
Add second test 'it gets the sum of allaccount balances'
