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