Sha256: c2e35bf55256e1a6964964a2c37685c5f0e07dad6e55501bfc3f08868c0ad6d9

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

require 'spec_helper'

describe OmniAuth::Strategies::Meetup do
  it_should_behave_like 'an oauth strategy'
  it 'should use the authenticate (sign in) URL by default' do
    s = strategy_class.new(app, 'abc', 'def')
    s.consumer.options[:authorize_path].should == 'http://www.meetup.com/authenticate'
  end

  it 'should use the authorize URL if :sign_in is false' do
    s = strategy_class.new(app, 'abc', 'def', :sign_in => false)
    s.consumer.options[:authorize_path].should == 'http://www.meetup.com/authorize'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
oa-oauth-0.3.2 spec/omniauth/strategies/oauth/meetup_spec.rb
oa-oauth-0.3.0 spec/omniauth/strategies/oauth/meetup_spec.rb
oa-oauth-0.3.0.rc3 spec/omniauth/strategies/oauth/meetup_spec.rb