Sha256: ac9f3f0cfe99372e8aa378a6b76fb1619bf67453b8c0440cfa29de8f32589e18

Contents?: true

Size: 793 Bytes

Versions: 3

Compression:

Stored size: 793 Bytes

Contents

require 'spec_helper'

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

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

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

    it 'should have correct request url' do
      subject.options.client_options.request_token_path.should eq('/oauth/request_token')
    end

    it 'should have correct access url' do
      subject.options.client_options.access_token_path.should eq('/oauth/access_token')
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omniauth-vimeo-1.0.1 spec/omniauth/strategies/vimeo_spec.rb
omniauth-vimeo-1.0.0 spec/omniauth/strategies/vimeo_spec.rb
omniauth-vimeo-0.0.2 spec/omniauth/strategies/vimeo_spec.rb