sample_rails_tailwind/test/integration
songtianlun 23992ec4b2 feat: add user authentication checks
- Implement before_action to ensure users are logged in
- Add logged_in_user method to handle redirection
- Update user fixture to include new user
- Enhance integration tests to check for login requirement

This commit introduces user authentication checks for the edit and
update actions in the UsersController. It ensures that only logged-in
users can access these actions, improving the security of the
application. Additionally, integration tests have been updated to
verify that users are redirected to the login page if they attempt
to edit or update their information without being logged in.
2025-01-03 11:12:51 +08:00
..
.keep init sample-app 2024-12-29 17:12:54 +08:00
site_layout_test.rb add some test 2024-12-31 00:37:02 +08:00
users_edit_test.rb feat: add user authentication checks 2025-01-03 11:12:51 +08:00
users_login_test.rb feat: add remember me functionality to login 2025-01-02 17:49:06 +08:00
users_signup_test.rb feat: enhance user session management 2025-01-02 11:59:27 +08:00