rspec fix

This commit is contained in:
Valery Sizov 2015-01-10 20:04:06 -08:00
parent a9f7fd2c1a
commit ee28ee5f13
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ describe GithubImportsController do
it "updates access token" do
token = "asdasd12345"
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