mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
15 lines
310 B
Ruby
15 lines
310 B
Ruby
# frozen_string_literal: true
|
|
|
|
FactoryBot.define do
|
|
factory :import do
|
|
user
|
|
sequence(:name) { |n| "owntracks_export_#{n}.json" }
|
|
source { Import.sources[:owntracks] }
|
|
|
|
trait :with_points do
|
|
after(:create) do |import|
|
|
create_list(:point, 10, import:)
|
|
end
|
|
end
|
|
end
|
|
end
|