Skip to content

Move the rooms and time slots controller specs into system specs - #1301

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

amatsuda merged 1 commit into
rubycentral:mainfrom
amatsuda:schedule_system_specs

Conversation

@amatsuda

@amatsuda amatsuda commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two small schedule-area controller specs in one PR. Both tested turbo_stream destroy and update requests directly; the same actions now run from the schedule pages as an organizer.

Controller example Now
rooms: destroys the room with turbo_stream new spec/system/staff/rooms_spec.rb: removing a room from the rooms page takes its row away and deletes it
time slots: destroys the time slot time_slots_spec: "removes it"
time slots: can update a time slot with turbo_stream (conference_day) time_slots_spec: "moves it to another day" through the edit dialog
time slots: can set the program session time_slots_spec: "schedules a program session into it" through the edit dialog

The edited slot uses round times (10:00 to 11:00) so the dialog's five-minute time selects can show its current values; the factory default of 10:41 is not an option and would make the form invalid.

Test

Full suite locally: 695 examples, 0 failures.

🤖 Generated with Claude Code

Both files tested turbo_stream destroy and update requests directly. The
same actions now run from the schedule pages as an organizer:

- spec/system/staff/rooms_spec.rb (new): removing a room from the rooms
  page takes its row away and deletes it
- spec/system/staff/time_slots_spec.rb: removing a time slot, moving one
  to another day through the edit dialog, and scheduling a program
  session into one through the edit dialog

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@amatsuda
amatsuda merged commit 6788db0 into rubycentral:main Nov 19, 2026
3 of 4 checks passed
@amatsuda
amatsuda deleted the schedule_system_specs branch November 19, 2026 06:00
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