skill-assessment-app/test/integration/question_live_coder_test.rb

23 lines
596 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
require 'test_helper'
class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
test "can load a live coder question" do
2016-09-14 17:05:37 -05:00
auth_candidate candidates(:dawn)
question = questions(:fed7)
get question_path(question.id)
assert_response :success
2017-04-17 14:50:32 -05:00
assert_select 'h1', question.question
end
2016-08-23 21:54:53 -05:00
test "should load seed data into live coder" do
2016-09-14 17:05:37 -05:00
auth_candidate candidates(:juan)
2016-08-23 21:54:53 -05:00
question = questions(:fed7)
get question_path(question.id)
assert_response :success
2017-04-18 17:15:38 -05:00
assert_select "textarea", question.input_options['html']
2016-08-23 21:54:53 -05:00
end
end