post grant_role_path(target_user, "no_such_role")
end
assert_redirected_to user_path(target_user)
post grant_role_path(target_user, "no_such_role")
end
assert_redirected_to user_path(target_user)
post revoke_role_path(target_user, "no_such_role")
end
assert_redirected_to user_path(target_user)
post revoke_role_path(target_user, "no_such_role")
end
assert_redirected_to user_path(target_user)
# Revoking administrator role from current user should fail
post revoke_role_path(administrator_user, "administrator")
# Revoking administrator role from current user should fail
post revoke_role_path(administrator_user, "administrator")