Sha256: 05c092fcd08beca2674b036f6f2b4574d40bc24f5b0bc57da98f111f21ecf59e

Contents?: true

Size: 813 Bytes

Versions: 1

Compression:

Stored size: 813 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
      expect(subject.options.name).to eq("vimeo")
    end

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

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-vimeo-1.0.2 spec/omniauth/strategies/vimeo_spec.rb