Sha256: ca7ded53ecb89563e23012c1a1616f50dff510465d1bf7f6b21d810c978dbc69

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'

describe LetsFreckle::User do
  context "#all" do
    it "should return all users" do
      LetsFreckle.configure do
        username "username"
        account_host "host"
        token "secret"
      end

      stub_api_request('users')
      users = LetsFreckle::User.all
      users.size.should == 2

      first_user = users.first
      first_user.email.should == 'apitest@letsfreckle.com'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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