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