move summary and questions to quiz controller

This commit is contained in:
Mark Moser committed 2016-08-08 07:45:08 -05:00
1 parent cc0823e6f9
commit e6358beec8
20 files changed
+194 -163

No files matched your search

@@ -1,6 +1,6 @@
require 'test_helper'
class QuestionFeatureTest < ActionDispatch::IntegrationTest
class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
def setup_auth candidate
post validate_candidate_url, params: { test_id: candidate.test_hash }
end
@@ -0,0 +1,18 @@
require 'test_helper'
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
def setup_auth candidate
post validate_candidate_url, params: { test_id: candidate.test_hash }
end
test "can load a live coder question" do
setup_auth candidates(:dawn)
question = questions(:fed7)
get question_path(question.id)
assert_response :success
assert_select '.question-text', question.question
# TODO: add in capybara and test form post
# assert_redirected summary_path
end
end