Skip to content
Snippets Groups Projects
Commit 5d69bc65 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix grack auth spec

parent 297f969b
No related branches found
No related tags found
No related merge requests found
Loading
@@ -179,7 +179,7 @@ describe Grack::Auth do
Loading
@@ -179,7 +179,7 @@ describe Grack::Auth do
before do before do
gitlab_ci_service = project.build_gitlab_ci_service gitlab_ci_service = project.build_gitlab_ci_service
gitlab_ci_service.active = true gitlab_ci_service.active = true
gitlab_ci_service.token = token gitlab_ci_service.stub(:token).and_return(token)
gitlab_ci_service.save gitlab_ci_service.save
   
env["HTTP_AUTHORIZATION"] = ActionController::HttpAuthentication::Basic.encode_credentials("gitlab-ci-token", token) env["HTTP_AUTHORIZATION"] = ActionController::HttpAuthentication::Basic.encode_credentials("gitlab-ci-token", token)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment