Sha256: 750d92f9217804ce9d6781932e2d7e8a53bb951c04691a95941d6a0f493eb14f
Contents?: true
Size: 782 Bytes
Versions: 4
Compression:
Stored size: 782 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) describe OmniAuth::Strategies::Twitter do it_should_behave_like 'an oauth strategy' it 'should use the authenticate (sign in) path by default' do s = strategy_class.new(app, 'abc', 'def') s.consumer.options[:authorize_path].should == '/oauth/authenticate' end it 'should set options[:authorize_params] to { :force_login => "true" } if :force_login is true' do s = strategy_class.new(app, 'abc', 'def', :force_login => true) s.options[:authorize_params].should == { :force_login => 'true' } end it 'should use the authorize path if :sign_in is false' do s = strategy_class.new(app, 'abc', 'def', :sign_in => false) s.consumer.options[:authorize_path].should == '/oauth/authorize' end end
Version data entries
4 entries across 4 versions & 2 rubygems