From 3916f666951100089429e1cd6c65f24678fb96f7 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 20 Feb 2018 15:30:50 +0100 Subject: [PATCH] Fix Factories --- spec/factories/user_exercise_feedback.rb | 1 + test/factories/error_template_attributes.rb | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/factories/user_exercise_feedback.rb b/spec/factories/user_exercise_feedback.rb index 42c5d803..3c43158f 100644 --- a/spec/factories/user_exercise_feedback.rb +++ b/spec/factories/user_exercise_feedback.rb @@ -2,6 +2,7 @@ FactoryBot.define do factory :user_exercise_feedback, class: UserExerciseFeedback do created_by_external_user feedback_text 'Most suitable exercise ever' + association :exercise, factory: :math end end diff --git a/test/factories/error_template_attributes.rb b/test/factories/error_template_attributes.rb index 84e65757..2e867ec5 100644 --- a/test/factories/error_template_attributes.rb +++ b/test/factories/error_template_attributes.rb @@ -1,6 +1,5 @@ FactoryBot.define do factory :error_template_attribute do - error_template nil key "MyString" regex "MyString" end