summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-12-06 15:20:50 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-12-06 15:20:50 +0800
commit444da6f47ed77172471a27386b969e6401d7cf84 (patch)
tree34b3f740dc9942ed075903f598275f02f456ff14 /spec/workers
parenta52dc7cec70ef97b2755fb9cef7d6b489062310c (diff)
downloadgitlab-ce-444da6f47ed77172471a27386b969e6401d7cf84.tar.gz
Fix update_ref! call in the test
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/git_garbage_collect_worker_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/workers/git_garbage_collect_worker_spec.rb b/spec/workers/git_garbage_collect_worker_spec.rb
index e471a68a49a..2b31efbf631 100644
--- a/spec/workers/git_garbage_collect_worker_spec.rb
+++ b/spec/workers/git_garbage_collect_worker_spec.rb
@@ -107,7 +107,8 @@ describe GitGarbageCollectWorker do
tree: old_commit.tree,
parents: [old_commit],
)
- project.repository.update_ref!(
+ GitOperationService.new(nil, project.repository).send(
+ :update_ref!,
"refs/heads/#{SecureRandom.hex(6)}",
new_commit_sha,
Gitlab::Git::BLANK_SHA