require 'helper'

describe Surveygizmo::API do
  let(:client) { Surveygizmo::Client.new }

  describe "#account" do
    before do
     stub_get("/v2/account").
       to_return(:body => fixture("account.json"), :headers => {:content_type => "application/json; charset=utf-8"})
    end
    it "requests the correct resource" do
      client.account
      a_get("/v2/account").
        should have_been_made
    end
  end
end
