spec/letsfreckle/project_spec.rb in letsfreckle-client-0.1.2 vs spec/letsfreckle/project_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::Project.url('projects')).to_return(:body => load_response('projects'))
+ stub_api_request('projects')
projects = LetsFreckle::Project.all
projects.size.should == 2
first_project = projects.first
first_project.name.should == 'TestProject1'
\ No newline at end of file