Sha256: 388ef905e94885c2e07300dfef7dbafbf8fd5f08ffcaaf47966c4837ba4e04e2
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
require 'spec_helper' require 'omniauth/roomorama' describe OmniAuth::Strategies::Roomorama do before do OmniAuth.config.test_mode = true end subject do OmniAuth::Strategies::Roomorama.new(nil, @options || {}) end it_should_behave_like 'an oauth2 strategy' describe '#client' do it 'should have the correct site' do subject.client.site.should eq("https://api.roomorama.com") end it 'should have the correct authorization url' do subject.client.options[:authorize_url].should eq("https://roomorama.com/oauth/authorize") end it 'should have the correct token url' do subject.client.options[:token_url].should eq('https://roomorama.com/oauth/token') end end describe '#callback_path' do it 'should have the correct callback path' do subject.callback_path.should eq('/auth/roomorama/callback') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omniauth-roomorama-0.2.0 | spec/omniauth/strategies/roomorama_spec.rb |