Sha256: 5a656338599436fec0603a5c55d86ae3c31502740b30edf69499ff535771a1f6
Contents?: true
Size: 785 Bytes
Versions: 3
Compression:
Stored size: 785 Bytes
Contents
require 'spec_helper' module Socialite describe FacebookIdentity do subject { FactoryGirl.build(:facebook_identity) } it_behaves_like 'facebook api' describe '.api_connection' do subject { Socialite::FacebookIdentity.api_connection } it { should be_a(Koala::Facebook::API) } it 'defaults to not using an access token' do subject.access_token.should be_nil end context 'with specified access token' do let!(:fake_token) { '1234567890' } subject { Socialite::FacebookIdentity.api_connection(fake_token) } it 'does not use an access_token unless specified' do subject.should be_a(Koala::Facebook::API) subject.access_token.should eql(fake_token) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
socialite-0.0.1.beta4 | spec/models/facebook_spec.rb |
socialite-0.0.1.beta2 | spec/models/facebook_spec.rb |
socialite-0.0.1.beta | spec/models/facebook_spec.rb |