Sha256: 68327760ad8c373c923f2ef48a05f61fff4d4f4407b4a62ce891a70e8b5e9ebc
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 Bytes
Contents
require 'spec_helper' describe OmniAuth::Strategies::Amazon do subject do strategy = OmniAuth::Strategies::Amazon.new(nil, @options || {}) strategy.stub(:session) { { } } strategy end describe '#client' do it 'should have the correct Amazon site' do expect(subject.client.site).to eq("https://www.amazon.com/") end it 'should have the correct authorization url' do expect(subject.client.options[:authorize_url]).to eq("https://www.amazon.com/ap/oa") end it 'should have the correct token url' do expect(subject.client.options[:token_url]).to eq('https://api.amazon.com/auth/o2/token') end end describe '#callback_path' do it 'should have the correct callback path' do expect(subject.callback_path).to eq('/auth/amazon/callback') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-amazon-1.0.1 | spec/omniauth/strategies/amazon_spec.rb |
omniauth-amazon-1.0.0 | spec/omniauth/strategies/amazon_spec.rb |