diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-06 04:20:55 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-06 04:20:55 +0200 |
| commit | 970f10854bccee0528de8435e5a65cdcc18ba93e (patch) | |
| tree | 3d6b96fc6594241fade803df4c1862301c454767 /app/views | |
| parent | 81a07bfca08fda8ce762f2282d3bd5f6909dc923 (diff) | |
Remove dead custom_rrule references after column drop
events#index still read event.custom_rrule - a live bug the column-drop
migration introduced, not just stale test data. Caught by four test
failures (three fixtures/direct attribute hashes still setting the
removed column, one UnknownAttributeError from a stale fixture loaded
before any test method runs), none of which were actually testing this
view - "should get index" passed throughout with zero Event records
present, meaning it could never have caught a per-row rendering bug.
Strengthened to create one real event first, so a future stray
reference to a dropped or renamed column fails loudly instead of
silently passing on an empty table.
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/events/index.html.erb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index d0458d7..ae4f477 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | <th>Start time</th> | 6 | <th>Start time</th> |
| 7 | <th>End time</th> | 7 | <th>End time</th> |
| 8 | <th>Rrule</th> | 8 | <th>Rrule</th> |
| 9 | <th>Custom rrule</th> | ||
| 10 | <th>Allday</th> | 9 | <th>Allday</th> |
| 11 | <th>Url</th> | 10 | <th>Url</th> |
| 12 | <th>Node</th> | 11 | <th>Node</th> |
| @@ -18,7 +17,6 @@ | |||
| 18 | <td><%=h event.start_time %></td> | 17 | <td><%=h event.start_time %></td> |
| 19 | <td><%=h event.end_time %></td> | 18 | <td><%=h event.end_time %></td> |
| 20 | <td><%=h event.rrule %></td> | 19 | <td><%=h event.rrule %></td> |
| 21 | <td><%=h event.custom_rrule %></td> | ||
| 22 | <td><%=h event.allday %></td> | 20 | <td><%=h event.allday %></td> |
| 23 | <td><%=h event.url %></td> | 21 | <td><%=h event.url %></td> |
| 24 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> | 22 | <td><%= event.node ? link_to(event.node_id, node_path(event.node)) : '' %></td> |
