move /review to /admin/results

This commit is contained in:
Mark Moser
2016-09-22 14:19:44 -05:00
parent 9078c463f4
commit 0a9bf96e24
11 changed files with 53 additions and 131 deletions

View File

@ -20,10 +20,9 @@ class QuestionAttachmentsTest < ActionDispatch::IntegrationTest
end
test "should show attachments on review" do
user = users :reviewer
post review_auth_url, params: { auth: { email: user.email, password: 'password' } }
auth_reviewer
get review_test_path(candidates(:richard).test_hash)
get admin_result_path(candidates(:richard).test_hash)
assert_response :success
assert_select "img[src=\"#{questions(:fed6).attachment}\"]"
end