Sha256: 1bc5ca37bb208364a4c9b2a074143c4cc230eaecad7e7755e79bf603a4d1d199

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe OpenSesame::GithubAuth do
  subject do
    OpenSesame::GithubAuth.new({})
  end

  context "client options" do
    it 'should have correct site' do
      subject.options.client_options.site.should eq("https://api.github.com")
    end

    it 'should have correct authorize url' do
      subject.options.client_options.authorize_url.should eq('https://github.com/login/oauth/authorize')
    end

    it 'should have correct token url' do
      subject.options.client_options.token_url.should eq('https://github.com/login/oauth/access_token')
    end
  end

  it 'should have /opensesame path_prefix' do
    subject.options.path_prefix.should eq('/opensesame')
  end

  it 'should have name github' do
    subject.options.name.should eq('github')
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opensesame-0.4.0 spec/lib/open_sesame/github_auth_spec.rb
opensesame-0.3.0 spec/lib/open_sesame/github_auth_spec.rb
opensesame-0.2.0 spec/lib/open_sesame/github_auth_spec.rb
opensesame-0.1.2 spec/lib/open_sesame/github_auth_spec.rb
opensesame-0.1.1 spec/lib/open_sesame/github_auth_spec.rb
opensesame-0.1.0 spec/lib/open_sesame/github_auth_spec.rb