BigW Consortium Gitlab

Commit 5d69bc65 by Kamil Trzcinski

Fix grack auth spec

parent 297f969b
...@@ -179,7 +179,7 @@ describe Grack::Auth do ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment