diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-09 00:09:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-09 00:09:42 +0000 |
commit | 77914793a349059bf523b131fc925b34349d6884 (patch) | |
tree | e21ee34216768d49a3309c453a444b5e29675a78 /spec/factories | |
parent | cb36ae7dd5fde175f8a24bfa97b20e9b2e2058bf (diff) | |
download | gitlab-ce-77914793a349059bf523b131fc925b34349d6884.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/merge_requests.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/factories/merge_requests.rb b/spec/factories/merge_requests.rb index 7983a0b82e6..4da384ce61f 100644 --- a/spec/factories/merge_requests.rb +++ b/spec/factories/merge_requests.rb @@ -268,7 +268,7 @@ FactoryBot.define do source_project = merge_request.source_project # Fake `fetch_ref!` if we don't have repository - # We have too many existing tests replying on this behaviour + # We have too many existing tests relying on this behaviour unless [target_project, source_project].all?(&:repository_exists?) allow(merge_request).to receive(:fetch_ref!) end |