diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-08-10 17:20:53 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-08-10 17:20:53 +0300 |
commit | c772464b68ad87860206e1ad341cca69e301a483 (patch) | |
tree | 903ced4b2b848d8e60bad9aae6a701579b28dd58 /spec/factories/merge_requests.rb | |
parent | 64e13d1958eac06185866e050ef83678ed2c4fd9 (diff) |
Introduce MergeRequest#write_ref and Repository#write_ref
so that we don't have to fetch it for non-forks
Diffstat (limited to 'spec/factories/merge_requests.rb')
-rw-r--r-- | spec/factories/merge_requests.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/factories/merge_requests.rb b/spec/factories/merge_requests.rb index 04493981945..cbec716d6ea 100644 --- a/spec/factories/merge_requests.rb +++ b/spec/factories/merge_requests.rb @@ -72,10 +72,10 @@ FactoryGirl.define do target_project = merge_request.target_project source_project = merge_request.source_project - # Fake `fetch_ref` if we don't have repository + # Fake `write_ref` if we don't have repository # We have too many existing tests replying on this behaviour unless [target_project, source_project].all?(&:repository_exists?) - allow(target_project.repository).to receive(:fetch_ref) + allow(merge_request).to receive(:write_ref) end end |