osem-fcy/spec/controllers
Asish Kumar c5e84221c2 Make iCalendar feed routes return calendar data
Both iCalendar routes were unusable:

* `/conferences/.../schedule.ics` raised
  `NoMethodError: undefined method 'icalendar_proposals'` because the
  `ConferenceHelper#icalendar_proposals` helper isn't auto-included in
  controllers; the action crashed before rendering.

* `/calendar.ics` silently redirected to `/`. The controller goes
  through `load_and_authorize_resource`, which authorises `:calendar`
  on `Conference` and is rejected for anonymous visitors because no
  ability grants it — CanCan's `AccessDenied` rescue redirects to
  root.

The helper is invoked through the controller `helpers` proxy so it
works in both contexts, and the calendar action is opted out of
resource loading and explicitly marked as not requiring authorization
since it serves a public feed across conferences. The helper is also
hardened so that proposals missing a room, difficulty level, track,
event type or scheduled time produce a valid event instead of
crashing the whole feed.
2026-05-14 11:02:49 +05:30
..
admin Drop Organization from specs 2024-06-07 17:42:08 +02:00
api/v1 Use be_successful instead of be_success 2022-01-23 14:06:02 -08:00
users Rubocop autocorrections 2018-11-16 09:06:05 -08:00
application_controller_spec.rb Remove superfluous specs 2022-05-06 14:26:51 +02:00
booths_controller_spec.rb add booth in alias 2019-08-10 21:40:25 +05:30
conference_registration_controller_spec.rb Also clear ENV when manipulating it 2025-08-13 11:21:23 +02:00
conferences_controller_spec.rb Make iCalendar feed routes return calendar data 2026-05-14 11:02:49 +05:30
confirmations_controller_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
physical_ticket_controller_spec.rb Use keyword arguments in tests 2019-05-14 14:10:36 +02:00
proposals_controller_spec.rb 👋 update_attributes 2022-02-23 14:36:05 +01:00
schedules_controller_spec.rb Make iCalendar feed routes return calendar data 2026-05-14 11:02:49 +05:30
subscriptions_controller_spec.rb Use keyword arguments in tests 2019-05-14 14:10:36 +02:00
surveys_controller_spec.rb Use keyword arguments in tests 2019-05-14 14:10:36 +02:00
tracks_controller_spec.rb Fix the test failures 2022-03-30 12:39:01 +02:00
users_controller_spec.rb Use keyword arguments in tests 2019-05-14 14:10:36 +02:00