tests: fix various broken tests.

This commit is contained in:
evazion
2020-01-18 19:04:58 -06:00
parent cbbeac00df
commit 79015b4341
4 changed files with 24 additions and 24 deletions

View File

@@ -92,7 +92,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
should "redirect anonymous users to the sign in page" do
get profile_path
assert_redirected_to new_session_path
assert_redirected_to login_path(url: "/profile")
end
should "return 404 for anonymous api calls" do
@@ -150,7 +150,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
should "redirect anonymous users to the sign in page" do
get settings_path
assert_redirected_to new_session_path
assert_redirected_to login_path(url: "/settings")
end
end