Sha256: db97194a000addce02b65db205cce4c887918c23c0a8e61d059db96ceaaf4294

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

require 'test_helper'

describe OmniAuth::Strategies::StackExchange do
  let(:stackexchange) do
    OmniAuth::Strategies::StackExchange.new({})
  end

  it 'has correct site' do
    stackexchange.options.client_options.site.must_equal("https://api.stackexchange.com/2.0")
  end

  it 'has correct authorize url' do
    stackexchange.options.client_options.authorize_url.must_equal('https://stackexchange.com/oauth')
  end

  it 'has correct token url' do
    stackexchange.options.client_options.token_url.must_equal('https://stackexchange.com/oauth/access_token')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omniauth-stackexchange-0.2.1 test/stackexchange_test.rb
omniauth-stackexchange-0.2.0 test/stackexchange_test.rb
omniauth-stackexchange-0.1.0 test/stackexchange_test.rb
omniauth-stackexchange-0.0.1 test/stackexchange_test.rb