Sha256: 8fab6f6188ba149cd2921884679245dcf7f76fef21cec5a8214b0100810543aa

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

require 'spec_helper'
require 'ezlinkedin'

describe EzLinkedin::Client do
	let(:client) { EzLinkedin::Client.new('api_key', 'secret_key') }

	it "client initializes" do
		client.nil?.should_not be_true
		client.consumer_key.should eql('api_key')
		client.consumer_secret.should eql('secret_key')
		client.client.should be_a_kind_of OAuth::Consumer
 	end

 	it 'creates an access token' do
 		client.authorize('token', 'token_secret')
		access_token = client.access_token
		access_token.should be_a_kind_of OAuth::AccessToken
 end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ezlinkedin-0.5.3 spec/client_spec.rb
ezlinkedin-0.5.2 spec/client_spec.rb
ezlinkedin-0.4.2 spec/client_spec.rb
ezlinkedin-0.2.2 spec/client_spec.rb
ezlinkedin-0.1.2 spec/client_spec.rb
ezlinkedin-0.1.1 spec/client_spec.rb
ezlinkedin-0.0.1 spec/client_spec.rb