Skip to content

Commit 1880897

Browse files
committed
Update error message for grading routes
1 parent 4c9893b commit 1880897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/cadet_web/admin_controllers/admin_grading_controller_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ defmodule CadetWeb.AdminGradingControllerTest do
10991099
|> sign_in(staff.user)
11001100
|> post(build_url_unpublish_all(course.id, assessment_id))
11011101

1102-
assert response(conn, 403) == "Only Admin is permitted to unpublish all grades"
1102+
assert response(conn, 403) == "Forbidden"
11031103
end
11041104
end
11051105

@@ -1135,7 +1135,7 @@ defmodule CadetWeb.AdminGradingControllerTest do
11351135
|> sign_in(staff.user)
11361136
|> post(build_url_publish_all(course.id, assessment_id))
11371137

1138-
assert response(conn, 403) == "Only Admin is permitted to publish all grades"
1138+
assert response(conn, 403) == "Forbidden"
11391139
end
11401140
end
11411141

0 commit comments

Comments
 (0)