Skip to content

Move the teammates controller spec into the invitation system spec - #1298

Merged
amatsuda merged 1 commit into
rubycentral:mainfrom
amatsuda:teammates_system_specs
Nov 19, 2026
Merged

amatsuda merged 1 commit into
rubycentral:mainfrom
amatsuda:teammates_system_specs

Conversation

@amatsuda

Copy link
Copy Markdown
Collaborator

Summary

Fifth per-file conversion. spec/controllers/teammates_controller_spec.rb is deleted.

spec/system/staff/teammate_invitation_spec.rb already visits the accept and decline links as a signed-in user but only checked the flash. Its two scenarios now also assert what the controller spec did:

  • accepting marks the invitation accepted and makes the user a reviewer for the event
  • declining marks the invitation declined

Test

bin/rspec spec/system/staff/teammate_invitation_spec.rb: 18 examples, 0 failures.

🤖 Generated with Claude Code

Accepting and declining a teammate invitation were already walked
through in spec/system/staff/teammate_invitation_spec.rb, but those
scenarios only looked at the flash. They now also check what the
controller spec checked: accepting marks the invitation accepted and
makes the user a reviewer for the event; declining marks it declined.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@amatsuda
amatsuda merged commit 5a5a907 into rubycentral:main Nov 19, 2026
2 checks passed
@amatsuda
amatsuda deleted the teammates_system_specs branch November 19, 2026 05:55
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