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

12 lines
310 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
def create_item(content:, project:)
create(:merge_request, :unique_branches, title: content, target_project: project, source_project: project)
end
it_behaves_like 'search recent items'
end