skill-assessment-app/test/integration/question_live_coder_test.rb
2017-06-05 11:30:35 -05:00

23 lines
596 B
Ruby

# frozen_string_literal: true
require 'test_helper'
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
test "can load a live coder question" do
auth_candidate candidates(:dawn)
question = questions(:fed7)
get question_path(question.id)
assert_response :success
assert_select 'h1', question.question
end
test "should load seed data into live coder" do
auth_candidate candidates(:juan)
question = questions(:fed7)
get question_path(question.id)
assert_response :success
assert_select "textarea", question.input_options['html']
end
end