debian-mirror-gitlab/spec/factories/search_index.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
298 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# 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