osem-fcy/spec
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
..
ability Drop Organization abilities 2024-06-07 16:16:02 +02:00
controllers Make iCalendar feed routes return calendar data 2026-05-14 11:02:49 +05:30
datatables Use CSS-compatible row IDs in datatables 2022-09-13 11:06:22 -07:00
factories Fix various typos 2025-10-15 11:15:47 +00:00
features Drop Rails.application.secrets usage 2025-08-12 17:27:25 +02:00
helpers Drop Organization from specs 2024-06-07 17:42:08 +02:00
mailers Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
models Remove superflous spec for User.registered/attended 2024-12-09 16:42:42 +01:00
pdfs Resolve warning about test using not_to raise_error 2021-07-05 19:39:52 +02:00
routing Add frozen_string_literal magic comment 2018-05-09 06:54:26 -07:00
serializers Merge pull request #3090 from AndrewKvalheim/api-time-zone 2023-04-19 13:36:12 +02:00
support Autocorrect new rubocop offenses 2025-08-12 16:44:20 +02:00
spec_helper.rb Replace flash helper with "within" 2025-08-06 13:11:48 +02:00