Sha256: 39baa2e6c0c257d30ff166d0070da949644be48e5e22c5c981793aeaf0c0dcb1
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 Bytes
Contents
require 'spec_helper' require 'omniauth-dailymotion' describe OmniAuth::Strategies::Dailymotion do subject do OmniAuth::Strategies::Dailymotion.new(nil, @options || {}) end it_should_behave_like 'an oauth2 strategy' describe '#client' do it 'should have the correct Dailymotion site' do subject.client.site.should eq("https://api.dailymotion.com") end it 'should have the correct authorization url' do subject.client.options[:authorize_url].should eq("/oauth/authorize") end it 'should have the correct token url' do subject.client.options[:token_url].should eq('/oauth/token') end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should eq('/auth/dailymotion/callback') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-dailymotion-1.0.0 | spec/omniauth/strategies/dailymotion_spec.rb |