Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-24 21:12:25 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-09-24 21:12:25 +0300
commitce19e1739ef8bfbc192be6e5f7effe6d9feb777d (patch)
tree0d9b7abec543bddcfbdb753462b79900224f7627 /spec/lib/gitlab/backend
parent5d69bc656a80889b6e7eae2edd717c7e963ec48a (diff)
Update stub syntax
Diffstat (limited to 'spec/lib/gitlab/backend')
-rw-r--r--spec/lib/gitlab/backend/grack_auth_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/backend/grack_auth_spec.rb b/spec/lib/gitlab/backend/grack_auth_spec.rb
index e903c15a4c8..b0b2f3f72f1 100644
--- a/spec/lib/gitlab/backend/grack_auth_spec.rb
+++ b/spec/lib/gitlab/backend/grack_auth_spec.rb
@@ -179,7 +179,7 @@ describe Grack::Auth do
before do
gitlab_ci_service = project.build_gitlab_ci_service
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
env["HTTP_AUTHORIZATION"] = ActionController::HttpAuthentication::Basic.encode_credentials("gitlab-ci-token", token)