Skip to content

Commit

Permalink
Added MultipleChoiceQuestion test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Sep 21, 2018
1 parent e052e62 commit 1cb0959
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/models/multiple_choice_question_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,10 @@ class MultipleChoiceQuestionTest < ActiveSupport::TestCase
one = multiple_choice_questions(:one)
assert one.valid?
end

test "question must be present" do
one = multiple_choice_questions(:one)
one.question = nil
assert_not one.valid?
end
end

0 comments on commit 1cb0959

Please sign in to comment.