Skip to content

Commit

Permalink
Assert redirect when expecting a redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Oct 9, 2023
1 parent 2d62e52 commit b048a89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/courses_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def with_users_signed_in(users)
assert_difference 'Course.count', -1 do
delete course_url(@course)
end
assert_includes response.body, courses_url
assert_redirected_to courses_url
end

test 'should not destroy course as course admin if too many submissions' do
Expand All @@ -860,7 +860,7 @@ def with_users_signed_in(users)
assert_difference 'Course.count', -1 do
delete course_url(@course)
end
assert_includes response.body, courses_url
assert_redirected_to courses_url
end

test 'super admins are able to view questions' do
Expand Down

0 comments on commit b048a89

Please sign in to comment.