Sha256: 453fefc0244f4e8554492daab22278494ed24b54b3c78131cc10a5c706d713f9
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
require 'spec_helper' require 'omniauth-realgravity' describe OmniAuth::Strategies::RealGravity do let(:request) do double('request', params: {}, cookies: {}, env: {}) end subject do OmniAuth::Strategies::RealGravity.new(nil, @options || {}).tap do |strategy| strategy.stub(request: request) end end describe '#client' do it 'should have the correct RealGravity site' do subject.client.site.should eq("http://client.realgravity.com") end it 'should have the correct authorization url' do subject.client.options[:authorize_url].should eq("/oauth/authorize") end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should eq('/auth/realgravity/callback') end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
omniauth-realgravity-0.1.2 | spec/omniauth/strategies/realgravity_spec.rb |
omniauth-realgravity-0.1.1 | spec/omniauth/strategies/realgravity_spec.rb |