Sha256: b8393dac3618291bc1c752b21806e0fed521487dbb296de3ccc2df59a40cf642
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
require 'spec_helper' describe "OmniAuth::Strategies::Everyplay" do subject do OmniAuth::Strategies::Everyplay.new(nil, @options || {}) end context 'client options' do it 'has correct Everyplay site' do subject.options.client_options.site.should eq('https://api.everyplay.com') end it 'has correct access token path' do subject.options.client_options.token_url.should eq('/oauth2/access_token') end it 'has correct authorize url' do subject.options.client_options.authorize_url.should eq('https://everyplay.com/connect') end end context '#uid' do before :each do subject.stub(:raw_info) { { 'id' => '1' } } end it 'returns the id from raw_info' do subject.uid.should eq('1') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-everyplay-1.0.0 | spec/omniauth/strategies/everyplay_spec.rb |