rspec fix
This commit is contained in:
parent
a9f7fd2c1a
commit
ee28ee5f13
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ describe GithubImportsController do
|
||||||
it "updates access token" do
|
it "updates access token" do
|
||||||
token = "asdasd12345"
|
token = "asdasd12345"
|
||||||
Gitlab::Github::Client.any_instance.stub_chain(:client, :auth_code, :get_token, :token).and_return(token)
|
Gitlab::Github::Client.any_instance.stub_chain(:client, :auth_code, :get_token, :token).and_return(token)
|
||||||
|
Gitlab.config.omniauth.providers << OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "github")
|
||||||
|
|
||||||
get :callback
|
get :callback
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue