Sha256: 57d98bdaa5f9452942f14924c52bab8f3ffb351f5db9e5a96c6f02c8cde60e04

Contents?: true

Size: 519 Bytes

Versions: 3

Compression:

Stored size: 519 Bytes

Contents

require 'spec_helper'

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

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

    it 'should have correct site' do
      subject.options.client_options.site.should eq('https://api-ssl.bitly.com/')
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-bitly-0.0.8 spec/omniauth/strategies/bitly_spec.rb
omniauth-bitly-0.0.7 spec/omniauth/strategies/bitly_spec.rb
omniauth-bitly-0.0.6 spec/omniauth/strategies/bitly_spec.rb