Skip to content

test: cover remember-me login, email token rejection and admin connect - #1227

Merged
salzig merged 1 commit into
masterfrom
chore/add_missing_specs
Nov 9, 2026
Merged

salzig merged 1 commit into
masterfrom
chore/add_missing_specs

Conversation

@salzig

@salzig salzig commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Closes the gaps in the committed suite that matter for the upcoming Rails 8 upgrade, since both login paths depend on cookie signing and secret_key_base.

  • Remember-me cookie: signs in without a session; does not after tampering or sign out.
  • Email login callback: an expired or forged token redirects to /auth/failure and creates no user.
  • Admin and super-admin connect: assigns the proposal to the event and signs its speaker up.

The super-admin connect spec only asserts a redirect: the action currently redirects into the /admin namespace instead of /super_admin. That is a bug for a separate PR; the assertion should be tightened to super_admin_event_path(event) there.

Full suite: 595 examples, 0 failures.

@salzig
salzig force-pushed the chore/add_missing_specs branch from deac807 to 6774048 Compare November 9, 2026 22:35
@salzig
salzig merged commit d37b81d into master Nov 9, 2026
1 check passed
@salzig
salzig deleted the chore/add_missing_specs branch November 9, 2026 22:38
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