PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/spec/lib/gitlab/gitlab_import/client_spec.rb

https://gitlab.com/jmaziarz/gitlab-ce
Ruby | 16 lines | 13 code | 3 blank | 0 comment | 0 complexity | 87905d52f7f0876319a746cebb6f646e MD5 | raw file
Possible License(s): CC-BY-3.0
  1. require 'spec_helper'
  2. describe Gitlab::GitlabImport::Client, lib: true do
  3. let(:token) { '123456' }
  4. let(:client) { Gitlab::GitlabImport::Client.new(token) }
  5. before do
  6. Gitlab.config.omniauth.providers << OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "gitlab")
  7. end
  8. it 'all OAuth2 client options are symbols' do
  9. client.client.options.keys.each do |key|
  10. expect(key).to be_kind_of(Symbol)
  11. end
  12. end
  13. end