fixed attachment test

This commit is contained in:
Mark Moser 2016-08-17 14:26:54 -05:00
parent 86c36fd7fb
commit 225f402c0f
2 changed files with 8 additions and 22 deletions

View File

@ -22,15 +22,12 @@ class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
assert_select "img[src=\"#{questions(:fed6).attachment}\"]" assert_select "img[src=\"#{questions(:fed6).attachment}\"]"
end end
# For some reason this test fails on review, but passes on summery /shrug test "should show attachments on review" do
# explore later user = users :reviewer
# post review_auth_url, params: { auth: { email: user.email, password: 'password' } }
# test "should show attachments on review" do
# user = users :reviewer get review_test_path(candidates(:richard).test_hash)
# post review_auth_url, params: { auth: { email: user.email, password: 'password' } } assert_response :success
# assert_select "img[src=\"#{questions(:fed6).attachment}\"]"
# get review_path(candidates(:richard).test_hash) end
# assert_response :success
# assert_select "img[src=\"#{questions(:fed6).attachment}\"]"
# end
end end

View File

@ -15,15 +15,4 @@ class QuestionLiveCoderTest < ActionDispatch::IntegrationTest
# TODO: add in capybara and test form post # TODO: add in capybara and test form post
# assert_redirected summary_path # assert_redirected summary_path
end end
test "can load a live coder TEXT question" do
setup_auth candidates(:dawn)
question = questions(:fed3)
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 end