Closed chvanikoff closed 4 years ago
Hi, I'd suggest changing generated test cases to assert against Routes.*_path rather than plain string - this way it becomes much easier to change routes like /users/login -> /auth/login. i.e.:
Routes.*_path
/users/login
/auth/login
- assert redirected_to(conn) == "/users/login" + assert redirected_to(conn) == Routes.user_session_path(conn, :new)
I agree. A PR is welcome!
Hi, I'd suggest changing generated test cases to assert against
Routes.*_path
rather than plain string - this way it becomes much easier to change routes like/users/login
->/auth/login
. i.e.: