FactoryGirl.define do
  factory :course_assessment_answer_multiple_response,
          class: Course::Assessment::Answer::MultipleResponse,
          parent: :course_assessment_answer do
    question do
      build(:course_assessment_question_multiple_response, assessment: assessment).question
    end
  end
end

FactoryGirl.define do
  factory :course_assessment_answer_multiple_response,
          class: Course::Assessment::Answer::MultipleResponse,
          parent: :course_assessment_answer do
    question do
      build(:course_assessment_question_multiple_response, assessment: assessment).question
    end

    trait :wrong do
      after(:build) do |answer|
        answer.options = answer.question.options - answer.question.options.correct
      end
    end

    trait :correct do
      after(:build) do |answer|
        answer.options = answer.question.options.correct
      end
    end
  end
end

Add correct and wrong traits to MRQ answers.
Add correct and wrong traits to MRQ answers.
