debian-mirror-gitlab/spec/lib/gitlab/search/recent_merge_requests_spec.rb

14 lines
341 B
Ruby
Raw Normal View History

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