Sha256: 9887e61779cf7dee400618eae7a4bca43baeae3642b5c633141c935f804e9daa
Contents?: true
Size: 827 Bytes
Versions: 9
Compression:
Stored size: 827 Bytes
Contents
require 'spec_helper' require 'omniauth-surveymonkey2' describe OmniAuth::Strategies::Surveymonkey2 do subject do OmniAuth::Strategies::Surveymonkey2.new(nil, @options || {}) end it_should_behave_like 'an oauth2 strategy' describe '#client' do it 'has correct surveymonkey api site' do subject.options.client_options.site.should == ('https://api.surveymonkey.com') 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
9 entries across 9 versions & 1 rubygems