Skip to content

Commit

Permalink
Update error messages for users
Browse files Browse the repository at this point in the history
  • Loading branch information
josh1248 committed Oct 13, 2024
1 parent 1880897 commit 410d030
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ defmodule CadetWeb.AdminUserControllerTest do

conn = put(conn, build_url_users_role(course_id, user_course_reg.id), params)

assert response(conn, 403) == "User is not permitted to change others' roles"
assert response(conn, 403) == "Forbidden"
unchanged_course_reg = Repo.get(CourseRegistration, user_course_reg.id)
assert unchanged_course_reg.role == :student
end
Expand Down Expand Up @@ -512,7 +512,7 @@ defmodule CadetWeb.AdminUserControllerTest do

conn = delete(conn, build_url_users(course_id, user_course_reg.id))

assert response(conn, 403) == "User is not permitted to delete other users"
assert response(conn, 403) == "Forbidden"
assert Repo.get(CourseRegistration, user_course_reg.id) != nil
end

Expand Down

0 comments on commit 410d030

Please sign in to comment.