From ce19e1739ef8bfbc192be6e5f7effe6d9feb777d Mon Sep 17 00:00:00 2001 From: Robert Speicher <rspeicher@gmail.com> Date: Thu, 24 Sep 2015 14:12:25 -0400 Subject: [PATCH] Update stub syntax --- spec/lib/gitlab/backend/grack_auth_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- GitLab