/spec/lib/gitlab/gitlab_import/client_spec.rb
https://gitlab.com/win32/gitlab-ce · Ruby · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · 0c268785aeabd8a604721533e5c430a7 MD5 · raw file
- require 'spec_helper'
- describe Gitlab::GitlabImport::Client do
- 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