spec/letsfreckle/user_spec.rb in letsfreckle-client-0.1.2 vs spec/letsfreckle/user_spec.rb in letsfreckle-client-0.2.0
- old
+ new
@@ -7,10 +7,10 @@
username "username"
account_host "host"
token "secret"
end
- stub_http_request(:get, LetsFreckle::User.url('users')).to_return(:body => load_response('users'))
+ stub_api_request('users')
users = LetsFreckle::User.all
users.size.should == 2
first_user = users.first
first_user.email.should == 'apitest@letsfreckle.com'
\ No newline at end of file