Skip to content
Snippets Groups Projects
Commit ce19e173 authored by Robert Speicher's avatar Robert Speicher
Browse files

Update stub syntax

parent 5d69bc65
Branches
Tags
1 merge request!1425Get CI token from ci projects
Pipeline #
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.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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment