Sha256: 6840362b382c78993dfc4a1575361d1480ac8b60e0845b95d1fdade631de469c

Contents?: true

Size: 414 Bytes

Versions: 5

Compression:

Stored size: 414 Bytes

Contents

require 'helper'

describe Lelylan::Client::Profile do

  let(:lelylan) do
    a_client
  end

  describe '#me' do

    before do
      stub_get('/me').to_return(body: fixture('profile.json'))
    end

    let!(:profile) do
      lelylan.me()
    end

    it 'returns the type' do
      profile.id.should_not be_nil
    end

    it 'sends the request' do
      a_get('/me').should have_been_made
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 spec/lelylan/client/profile_spec.rb
lelylan-rb-0.0.5 spec/lelylan/client/profile_spec.rb
lelylan-rb-0.0.4 spec/lelylan/client/profile_spec.rb
lelylan-rb-0.0.3 spec/lelylan/client/profile_spec.rb
lelylan-rb-0.0.2 spec/lelylan/client/profile_spec.rb