2015-03-22 21:07:33 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-07-10 10:24:02 -04:00
|
|
|
describe Gitlab::GitlabImport::Client do
|
2016-06-08 10:49:01 -04:00
|
|
|
include ImportSpecHelper
|
|
|
|
|
2015-03-22 21:07:33 -04:00
|
|
|
let(:token) { '123456' }
|
2017-07-25 13:09:00 -04:00
|
|
|
let(:client) { described_class.new(token) }
|
2015-03-22 21:07:33 -04:00
|
|
|
|
|
|
|
before do
|
2016-06-08 10:49:01 -04:00
|
|
|
stub_omniauth_provider('gitlab')
|
2015-03-22 21:07:33 -04:00
|
|
|
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
|