osem-fcy/spec/models
Asish Kumar fae6332c36 Stop offering the schedule page when no schedule is published
The home and splash page render a link to the schedule based purely on
the `schedule_public` flag, even when an admin has not yet selected a
schedule or scheduled any events. Following that link rendered the
schedule view, which then failed inside `_carousel.html.haml` because
`@rooms` (and the selected schedule) had no data — a 500 error instead
of a graceful response.

Treat `schedule_public` as an allowance rather than an unchecked
control: introduce `Program#any_published_schedule?` (true only when
the flag is on *and* there is at least one event in a selected
schedule) and use it to decide whether to render the link from the
home and splash pages. The schedule controller now returns 404 when no
event has been scheduled, so bookmarked URLs surface as "not found"
instead of an internal server error.
2026-05-14 09:28:58 +05:30
..
booth_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00
cfp_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
comment_spec.rb Use chartkick globally 2018-12-30 16:57:22 -08:00
commercial_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
conference_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
email_settings_spec.rb 👋 update_attributes 2022-02-23 14:36:05 +01:00
event_schedule_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
event_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
event_type_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00
openid.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
payment_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
program_spec.rb Stop offering the schedule page when no schedule is published 2026-05-14 09:28:58 +05:30
registration_period_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
registration_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00
resource_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
role_spec.rb Create roles when not found in test 2019-05-05 09:40:49 +02:00
room_spec.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
schedule_spec.rb Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
sponsor_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00
sponsorship_level_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00
survey_question_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
survey_reply_spec.rb Add more options for surveys 2018-07-03 08:46:15 +03:00
survey_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
survey_submission_spec.rb Add more options for surveys 2018-07-03 08:46:15 +03:00
ticket_purchase_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
ticket_scanning_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
ticket_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
track_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
user_spec.rb Remove superflous spec for User.registered/attended 2024-12-09 16:42:42 +01:00
vote_spec.rb Stop validating factories in specs 2021-08-18 14:03:14 +02:00