diff options
Diffstat (limited to 'spec/lib/gitlab/search')
-rw-r--r-- | spec/lib/gitlab/search/recent_issues_spec.rb | 11 | ||||
-rw-r--r-- | spec/lib/gitlab/search/recent_merge_requests_spec.rb | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/spec/lib/gitlab/search/recent_issues_spec.rb b/spec/lib/gitlab/search/recent_issues_spec.rb new file mode 100644 index 00000000000..19a41d2aa38 --- /dev/null +++ b/spec/lib/gitlab/search/recent_issues_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe ::Gitlab::Search::RecentIssues do + def create_item(content:, project:) + create(:issue, title: content, project: project) + end + + it_behaves_like 'search recent items' +end diff --git a/spec/lib/gitlab/search/recent_merge_requests_spec.rb b/spec/lib/gitlab/search/recent_merge_requests_spec.rb new file mode 100644 index 00000000000..c6678ce0342 --- /dev/null +++ b/spec/lib/gitlab/search/recent_merge_requests_spec.rb @@ -0,0 +1,11 @@ +# 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 |