summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-24 17:47:57 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-24 17:47:57 +0200
commit5d69bc656a80889b6e7eae2edd717c7e963ec48a (patch)
tree66c18ed99d314d9b9331df87817ad4c883a13f3b
parent297f969babcd509b95b08e6531e09e4a75018d8c (diff)
downloadgitlab-ce-5d69bc656a80889b6e7eae2edd717c7e963ec48a.tar.gz
Fix grack auth spec
-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 9bed8f8ee5c..e903c15a4c8 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.token = token
+ gitlab_ci_service.stub(:token).and_return(token)
gitlab_ci_service.save
env["HTTP_AUTHORIZATION"] = ActionController::HttpAuthentication::Basic.encode_credentials("gitlab-ci-token", token)