candidate quiz progression work
This commit is contained in:
1 parent
a901186a74
commit
5be93e0d38
4 files changed
+44
-8
No files matched your search
@@ -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