admin test complete

This commit is contained in:
Mark Moser
2016-09-22 17:26:00 -05:00
parent 33f0358fa5
commit 4a745e0aba
8 changed files with 144 additions and 18 deletions

View File

@ -14,5 +14,33 @@ module Admin
get admin_users_url
assert_response :success
end
test "admin should redirect to users" do
auth_admin
get admin_url
assert_redirected_to admin_users_path
end
test "manager should redirect to quizzes" do
auth_manager
get admin_url
assert_redirected_to admin_quizzes_path
end
test "reviewer should redirect to results" do
auth_reviewer
get admin_url
assert_redirected_to admin_results_path
end
test "recruiter should redirect to candidates" do
auth_recruiter
get admin_url
assert_redirected_to admin_candidates_path
end
end
end