/spec/lib/gitlab/github_import/client_spec.rb
Ruby | 17 lines | 14 code | 3 blank | 0 comment | 0 complexity | 26546f1d14bc1e4ce1cf71cc753f512a MD5 | raw file
Possible License(s): CC-BY-3.0
- require 'spec_helper'
- describe Gitlab::GithubImport::Client do
- let(:token) { '123456' }
- let(:client) { Gitlab::GithubImport::Client.new(token) }
- before do
- github_provider = OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "github", args: { "client_options" => {} })
- allow(Gitlab.config.omniauth).to receive(:providers).and_return([github_provider])
- 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