Sha256: 5cc44869f7374eec5d2e1aeb0f6df8a15a66e21960917cd9a0f7da067dadae21

Contents?: true

Size: 452 Bytes

Versions: 2

Compression:

Stored size: 452 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_api_request('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

2 entries across 2 versions & 1 rubygems

Version Path
letsfreckle-client-0.2.1 spec/letsfreckle/entry_spec.rb
letsfreckle-client-0.2.0 spec/letsfreckle/entry_spec.rb