Sha256: 421a0fe7e2cc792ffe1015de537f5425a06b99110350aece9b7ae7f11016db74

Contents?: true

Size: 664 Bytes

Versions: 4

Compression:

Stored size: 664 Bytes

Contents

require 'spec_helper'

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

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

    it 'should have correct site' do
      subject.options.client_options.site.should eq('https://sharp-stone-1355.herokuapp.com')
    end

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

    it 'should have correct token url' do
      subject.options.client_options.token_url.should eq('/auth/access_token')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omniauth-casenex-0.6 spec/omniauth/strategies/casenex_spec.rb
omniauth-casenex-0.5 spec/omniauth/strategies/casenex_spec.rb
omniauth-casenex-0.4 spec/omniauth/strategies/casenex_spec.rb
omniauth-casenex-0.3 spec/omniauth/strategies/casenex_spec.rb