2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe ::Gitlab::Search::RecentMergeRequests do
|
2021-01-03 14:25:43 +05:30
|
|
|
let(:parent_type) { :project }
|
|
|
|
|
|
|
|
def create_item(content:, parent:)
|
|
|
|
create(:merge_request, :unique_branches, title: content, target_project: parent, source_project: parent)
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
it_behaves_like 'search recent items'
|
|
|
|
end
|