Sha256: 0817e64ed20bcc70e4833d777c25ab02b595c656e30ea3a62496df588a715511

Contents?: true

Size: 495 Bytes

Versions: 2

Compression:

Stored size: 495 Bytes

Contents

require 'spec_helper'

describe OmniAuth::Strategies::OAuth2 do
  def app; lambda{|env| [200, {}, ["Hello."]]} end
  let(:fresh_strategy){ Class.new(OmniAuth::Strategies::OAuth2) }

  describe '#client' do
    subject{ fresh_strategy }

    it 'should be initialized with symbolized client_options' do
      instance = subject.new(app, :client_options => {'authorize_url' => 'https://example.com'})
      instance.client.options[:authorize_url].should == 'https://example.com'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-oauth2-1.0.0.pr2 spec/omniauth/strategies/oauth2_spec.rb
omniauth-oauth2-1.0.0.pr1 spec/omniauth/strategies/oauth2_spec.rb