candidate quiz progression work
This commit is contained in:
@ -77,4 +77,25 @@ class QuizStatusTest < ActiveSupport::TestCase
|
||||
|
||||
assert_equal 0, status.progress
|
||||
end
|
||||
|
||||
test "roy is on question 3" do
|
||||
roy = candidates :roy
|
||||
status = QuizStatus.new roy
|
||||
|
||||
assert_equal questions(:fed3).id, status.current_question_id
|
||||
end
|
||||
|
||||
test "martha is on question 1" do
|
||||
martha = candidates :martha
|
||||
status = QuizStatus.new martha
|
||||
|
||||
assert_equal questions(:fed1).id, status.current_question_id
|
||||
end
|
||||
|
||||
test "richard is summary" do
|
||||
richard = candidates :richard
|
||||
status = QuizStatus.new richard
|
||||
|
||||
assert_equal nil, status.current_question_id
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user