spec/letsfreckle/entry_spec.rb in letsfreckle-client-0.1.2 vs spec/letsfreckle/entry_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::Entry.url('entries')).to_return(:body => load_response('entries'))
+ stub_api_request('entries')
entries = LetsFreckle::Entry.all
entries.size.should == 2
first_entry = entries.first
first_entry.description.should == 'api test description'
\ No newline at end of file