diff options
Diffstat (limited to 'spec/factories/ml')
-rw-r--r-- | spec/factories/ml/candidates.rb | 7 | ||||
-rw-r--r-- | spec/factories/ml/experiments.rb | 8 |
2 files changed, 15 insertions, 0 deletions
diff --git a/spec/factories/ml/candidates.rb b/spec/factories/ml/candidates.rb new file mode 100644 index 00000000000..b5644ee3841 --- /dev/null +++ b/spec/factories/ml/candidates.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true +FactoryBot.define do + factory :ml_candidates, class: '::Ml::Candidate' do + association :experiment, factory: :ml_experiments + association :user + end +end diff --git a/spec/factories/ml/experiments.rb b/spec/factories/ml/experiments.rb new file mode 100644 index 00000000000..043ca712e60 --- /dev/null +++ b/spec/factories/ml/experiments.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true +FactoryBot.define do + factory :ml_experiments, class: '::Ml::Experiment' do + sequence(:name) { |n| "experiment#{n}" } + association :project + association :user + end +end |