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>