summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-10-23 13:37:29 +0000
committerMichael Kozono <mkozono@gmail.com>2017-10-24 12:36:25 +0000
commit0791a7793c0b48c656f61f3ddcaeb4038df345ce (patch)
tree149910592959dd232e1f48480c38e3bcee2adb10 /spec
parent39e605c59fa442b352d34d44c53cccad68201d8c (diff)
downloadgitlab-ce-0791a7793c0b48c656f61f3ddcaeb4038df345ce.tar.gz
Merge branch 'bvl-fix-push-event-service-for-forks' into 'master'
Only cache the push event for the fork-source when it exists Closes #39352 See merge request gitlab-org/gitlab-ce!14989 (cherry picked from commit 08a8a3f963ff4ca5392abc66eb6fdae5d6d1e118) 6f5ebc4b Only cache the event for the fork-source when it exists
Diffstat (limited to 'spec')
-rw-r--r--spec/services/users/last_push_event_service_spec.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/spec/services/users/last_push_event_service_spec.rb b/spec/services/users/last_push_event_service_spec.rb
index 956358738fe..2b6c0267a0f 100644
--- a/spec/services/users/last_push_event_service_spec.rb
+++ b/spec/services/users/last_push_event_service_spec.rb
@@ -22,7 +22,6 @@ describe Users::LastPushEventService do
it 'caches the event for the origin project when pushing to a fork' do
source = build(:project, id: 5)
- allow(project).to receive(:forked?).and_return(true)
allow(project).to receive(:forked_from_project).and_return(source)
expect(service).to receive(:set_key)