Sha256: 2aed7213ed37f2656da938685030432a3a93c93dc673e1c65cc3b8682e5d95a8
Contents?: true
Size: 967 Bytes
Versions: 4
Compression:
Stored size: 967 Bytes
Contents
require 'spec_helper' require 'omniauth-mailchimp' describe OmniAuth::Strategies::Mailchimp do before :each do @request = double('Request') @request.stub(:params) { {} } end subject do OmniAuth::Strategies::Mailchimp.new(nil, @options || {}).tap do |strategy| strategy.stub(:request) { @request } end end it_should_behave_like 'an oauth2 strategy' describe '#client' do it 'has correct Mailchimp api site' do subject.options.client_options.site.should eq('https://login.mailchimp.com') end it 'has correct access token path' do subject.options.client_options.token_url.should eq('/oauth2/token') end it 'has correct authorize url' do subject.options.client_options.authorize_url.should eq('/oauth2/authorize') end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should eq('/auth/mailchimp/callback') end end end
Version data entries
4 entries across 4 versions & 1 rubygems