canvas-lms/app/models/quiz_question
Mark Ericksen 0e9ac378e9 Some quiz result display fixes and a scoring fix. Fixes #7894
This fixes a couple bugs with quizzes but more issues remain that require a
more in-depth refactor. This makes the following changes:
* QuizQuestion::ShortAnswerQuestion - don't let a blank answer match and
  receive full points. (the actual ticket being fixed)
* Fixed display of matching question results. If user left it blank it just said,
  "You put:". Now shows the "You left this blank" and uses the color for wrong.
* Fixed display of short_answer_question (fill-in-the-blank single option) as it
  never showed the "you left this blank" even though the code was setup
  with that intention.
* Added spec and factory change to validate the short_answer_question
  scoring change.

Test Plan:
* Create a quiz with a single "Fill in the blank". Give it 1 or 2 answers and don't remove the
  the blank answers.
* Preview the quiz (or take as a student... it's the same)
* Taking the quiz, leave the question blank and submit.
* The quiz review page should now show "Your Answer: You left this blank" and
  not award any points.

Change-Id: I485463849367c2a9e54882235a9961c2cf2e3cf9
Reviewed-on: https://gerrit.instructure.com/10704
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-05-22 09:32:21 -06:00
..
base.rb score unknown question types as 0 / points_possible 2012-05-14 15:39:07 -06:00
calculated_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
essay_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
fill_in_multiple_blanks_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
matching_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
multiple_answers_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
multiple_choice_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
multiple_dropdowns_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
numerical_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
short_answer_question.rb Some quiz result display fixes and a scoring fix. Fixes #7894 2012-05-22 09:32:21 -06:00
text_only_question.rb refactor and bug fixes for QuizQuestion.score_question 2012-04-25 10:34:03 -06:00
unknown_question.rb score unknown question types as 0 / points_possible 2012-05-14 15:39:07 -06:00
user_answer.rb fix module loading for QuizQuestion::UserAnswer 2012-04-26 13:46:55 -06:00