summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-22 20:16:41 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-22 20:24:47 +0300
commit6f5ebc4bae8524585b5377d3056664730e0e1381 (patch)
treefc3ec67edee1fc6b885f86887e71486338c6969a /spec/services
parent490cce630f5984d063283537ac42a6f9fbad86e6 (diff)
downloadgitlab-ce-6f5ebc4bae8524585b5377d3056664730e0e1381.tar.gz
Only cache the event for the fork-source when it existsbvl-fix-push-event-service-for-forks
It is possible for a fork not to have a source anymore, in this case we don't need to keep track of the push event.
Diffstat (limited to 'spec/services')
-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)