Sha256: dacf074c0d7bb7d3621f58e433d99e6b11437924241596fd6d84f35c1539fc13

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require 'spec_helper'

describe OmniAuth::Strategies::ShuttlerockOauth2 do
  subject do
    OmniAuth::Strategies::ShuttlerockOauth2.new({})
  end

  context "client options" do
    it 'should have correct name' do
      subject.options.name.should eq('shuttlerock_oauth2')
    end

    it 'should have correct site' do
      subject.options.client_options.site.should eq('https://login.shuttlerock.com')
    end

    it 'should have correct authorize url' do
      subject.options.client_options.authorize_url.should eq('/oauth/authorize')
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-shuttlerock-oauth2-0.0.3 spec/omniauth/strategies/shuttlerock_oauth2_spec.rb
omniauth-shuttlerock-oauth2-0.0.2 spec/omniauth/strategies/shuttlerock_oauth2_spec.rb