Sha256: 4beeeb91abae73bde90b8ffb2d42170ba493bb73b3d196fef005aa4135849a46
Contents?: true
Size: 528 Bytes
Versions: 3
Compression:
Stored size: 528 Bytes
Contents
require 'spec_helper' describe LetsFreckle::Entry do context "#all" do it "should return all entries" do LetsFreckle.configure do username "username" account_host "host" token "secret" end stub_http_request(:get, LetsFreckle::Entry.url('entries')).to_return(:body => load_response('entries')) entries = LetsFreckle::Entry.all entries.size.should == 2 first_entry = entries.first first_entry.description.should == 'api test description' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
letsfreckle-client-0.1.2 | spec/letsfreckle/entry_spec.rb |
letsfreckle-client-0.1.1 | spec/letsfreckle/entry_spec.rb |
letsfreckle-client-0.1.0 | spec/letsfreckle/entry_spec.rb |