diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-23 15:11:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-23 15:11:54 +0300 |
commit | e10ea43772b9a6be150a074be7e26bfd6fa0380e (patch) | |
tree | 97bd1bb8fe3f656b5f2480d83b7dc9e369092d74 /spec/factories | |
parent | 1f8c5a116bebd31650ef414c7b762ba91b8cc251 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/search_index.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/factories/search_index.rb b/spec/factories/search_index.rb new file mode 100644 index 00000000000..15d7024dbf1 --- /dev/null +++ b/spec/factories/search_index.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :search_index, class: 'Search::Index' do + initialize_with { type.present? ? type.new : Search::Index.new } + sequence(:path) { |n| "index-path-#{n}" } + sequence(:bucket_number) { |n| n } + type { Search::NoteIndex } + end +end |