Sha256: 97fc9d7b2492049762d1c89c5fa0454364cf6e54b360bec58fe5454b41823538
Contents?: true
Size: 870 Bytes
Versions: 5
Compression:
Stored size: 870 Bytes
Contents
require 'spec_helper' require 'omniauth-constantcontact2' describe OmniAuth::Strategies::ConstantContact2 do subject do OmniAuth::Strategies::ConstantContact2.new(nil, @options || {}) end it_should_behave_like 'an oauth2 strategy' describe '#client' do it 'should have the correct Constant Contact site' do subject.client.site.should eq("https://oauth2.constantcontact.com") end it 'should have the correct authorization url' do subject.client.options[:authorize_url].should eq("/oauth2/oauth/siteowner/authorize") end it 'should have the correct token url' do subject.client.options[:token_url].should eq('/oauth2/oauth/token') end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should eq('/auth/constantcontact/callback') end end end
Version data entries
5 entries across 5 versions & 1 rubygems