2015-04-26 12:48:37 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
describe Gitlab::GitlabImport::Client do
|
2016-06-16 23:09:34 +05:30
|
|
|
include ImportSpecHelper
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
let(:token) { '123456' }
|
2017-09-10 17:25:29 +05:30
|
|
|
let(:client) { described_class.new(token) }
|
2015-04-26 12:48:37 +05:30
|
|
|
|
|
|
|
before do
|
2016-06-16 23:09:34 +05:30
|
|
|
stub_omniauth_provider('gitlab')
|
2015-04-26 12:48:37 +05:30
|
|
|
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
|