Skip to content

Add tests for core session management methods#57

Merged
pelargir merged 3 commits into
mainfrom
add-more-tests
Jan 26, 2026
Merged

Add tests for core session management methods#57
pelargir merged 3 commits into
mainfrom
add-more-tests

Conversation

@pelargir
Copy link
Copy Markdown
Owner

@pelargir pelargir commented Jan 26, 2026

Add comprehensive test coverage for previously untested methods:

  • session_expired?: tests for expired, not expired, and unset sessions
  • signing_in?: tests for POST/GET to sign_in_path and other paths
  • handle_session_reset: tests that reset_session is called
  • Session timeout behavior: tests for session expiration logic including custom timeout values, current_user.auto_timeout, and active_url skipping

Add comprehensive test coverage for previously untested methods:
- session_expired?: tests for expired, not expired, and unset sessions
- signing_in?: tests for POST/GET to sign_in_path and other paths
- handle_session_reset: tests that reset_session is called
- Session timeout behavior: tests for session expiration logic including
  custom timeout values, current_user.auto_timeout, and active_url skipping
Ruby 3.4 removed mutex_m from the standard library, but older Rails
versions (like 5.1) depend on it. This fixes the LoadError when running
tests with Rails 5.1 on Ruby 3.4.
@pelargir pelargir merged commit 053b212 into main Jan 26, 2026
57 checks passed
@pelargir pelargir deleted the add-more-tests branch January 26, 2026 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant