Sha256: c9db73ce9c8dcd6f9ea4dc76f5d213badad9334fb86e22d4de2e3fbbd7acdd87

Contents?: true

Size: 697 Bytes

Versions: 2

Compression:

Stored size: 697 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('http://auth.casenex.com')
    end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-casenex-0.2 spec/omniauth/strategies/casenex_spec.rb
omniauth-casenex-0.1 spec/omniauth/strategies/casenex_spec.rb