require 'spec_helper' describe LetsFreckle::User do context "#all" do it "should return all users" do LetsFreckle.configure do username "username" account_host "host" token "secret" end stub_http_request(:get, LetsFreckle::User.url('users')).to_return(:body => load_response('users')) users = LetsFreckle::User.all users.size.should == 2 first_user = users.first first_user.email.should == 'apitest@letsfreckle.com' end end end