PageRenderTime 34ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/spec/lib/gitlab/github_import/client_spec.rb

https://gitlab.com/axil/gitlab-ee
Ruby | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | 26546f1d14bc1e4ce1cf71cc753f512a MD5 | raw file
Possible License(s): CC-BY-3.0
  1. require 'spec_helper'
  2. describe Gitlab::GithubImport::Client do
  3. let(:token) { '123456' }
  4. let(:client) { Gitlab::GithubImport::Client.new(token) }
  5. before do
  6. github_provider = OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "github", args: { "client_options" => {} })
  7. allow(Gitlab.config.omniauth).to receive(:providers).and_return([github_provider])
  8. end
  9. it 'all OAuth2 client options are symbols' do
  10. client.client.options.keys.each do |key|
  11. expect(key).to be_kind_of(Symbol)
  12. end
  13. end
  14. end