BigW Consortium Gitlab

client_spec.rb 443 Bytes
Newer Older
1 2
require 'spec_helper'

Douwe Maan committed
3
describe Gitlab::GitlabImport::Client, lib: true do
4 5 6 7 8 9 10 11 12 13 14 15 16
  let(:token) { '123456' }
  let(:client) { Gitlab::GitlabImport::Client.new(token) }

  before do
    Gitlab.config.omniauth.providers << OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "gitlab")
  end

  it 'all OAuth2 client options are symbols' do
    client.client.options.keys.each do |key|
      expect(key).to be_kind_of(Symbol)
    end
  end
end