Sha256: 22d7e56819031670847f9ff670a8a5008e38b6df4b69d47177145ee3f1f8c58e
Contents?: true
Size: 752 Bytes
Versions: 2
Compression:
Stored size: 752 Bytes
Contents
require 'surveymonkey-with-omniauth' describe OmniAuth::Strategies::Surveymonkey do subject do OmniAuth::Strategies::Surveymonkey.new(nil, {}) end describe '#client' do it 'has correct surveymonkey api site' do subject.options.client_options.site.should == ('https://api.surveymonkey.net') end it 'has correct access token path' do subject.options.client_options.token_url.should == ('/oauth/token') end it 'has correct authorize url' do subject.options.client_options.authorize_url.should == ('/oauth/authorize') end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should == ('/auth/surveymonkey/callback') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
surveymonkey-with-omniauth-1.1.1 | spec/omniauth/strategies/surveymonkey_spec.rb |
surveymonkey-with-omniauth-1.1.0 | spec/omniauth/strategies/surveymonkey_spec.rb |