Sha256: 6882ae11ecd7d8ea7cc7177385a9103c327d7cd075bc382ac00a46ef8c9eb706
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
letsfreckle-client-0.1.2 | spec/letsfreckle/user_spec.rb |
letsfreckle-client-0.1.1 | spec/letsfreckle/user_spec.rb |
letsfreckle-client-0.1.0 | spec/letsfreckle/user_spec.rb |