Commit dd96bc43 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in app/models/merge_request.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 1b8e68e6
......@@ -3,11 +3,6 @@ class MergeRequest < ActiveRecord::Base
include Issuable
include Noteable
include Referable
<<<<<<< HEAD
include Sortable
include Elastic::MergeRequestsSearch
=======
>>>>>>> upstream/master
include IgnorableColumn
include TimeTrackable
......@@ -15,6 +10,7 @@ class MergeRequest < ActiveRecord::Base
:ref_fetched
include ::EE::MergeRequest
include Elastic::MergeRequestsSearch
belongs_to :target_project, class_name: "Project"
belongs_to :source_project, class_name: "Project"
......
......@@ -2198,7 +2198,6 @@ describe MergeRequest do
end
end
<<<<<<< HEAD
describe '#base_pipeline' do
let!(:pipeline) { create(:ci_empty_pipeline, project: subject.project, sha: subject.diff_base_sha) }
......@@ -2243,14 +2242,9 @@ describe MergeRequest do
end
end
describe '#fetch_ref' do
it 'sets "ref_fetched" flag to true' do
subject.update!(ref_fetched: nil)
=======
describe '#fetch_ref!' do
it 'fetches the ref correctly' do
expect { subject.target_project.repository.delete_refs(subject.ref_path) }.not_to raise_error
>>>>>>> upstream/master
subject.fetch_ref!
expect(subject.target_project.repository.ref_exists?(subject.ref_path)).to be_truthy
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment