live coder seeding - completes #16
This commit is contained in:
1 parent
393fd15ab5
commit
2b55fed1bc
12 files changed
+79
-27
No files matched your search
@@ -15,4 +15,13 @@ class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
|
||||
# TODO: add in capybara and test form post
|
||||
# assert_redirected summary_path
|
||||
end
|
||||
|
||||
test "should load seed data into live coder" do
|
||||
setup_auth candidates(:juan)
|
||||
question = questions(:fed7)
|
||||
|
||||
get question_path(question.id)
|
||||
assert_response :success
|
||||
assert_select '#answer_live_code_html', question.input_options['html']
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user