BigW Consortium Gitlab

Commit ce19e173 by Robert Speicher

Update stub syntax

parent 5d69bc65
...@@ -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.stub(:token).and_return(token) allow(gitlab_ci_service).to receive(: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