diff options
Diffstat (limited to 'test/models/helpers/node_actions_helper_test.rb')
| -rw-r--r-- | test/models/helpers/node_actions_helper_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/models/helpers/node_actions_helper_test.rb b/test/models/helpers/node_actions_helper_test.rb index 1b72ec9c..01b57962 100644 --- a/test/models/helpers/node_actions_helper_test.rb +++ b/test/models/helpers/node_actions_helper_test.rb | |||
| @@ -143,4 +143,17 @@ class NodeActionsHelperTest < ActionView::TestCase | |||
| 143 | assert_includes verb_icon(entry("publish", { "via" => "revision" })), "node_action_icon--history" | 143 | assert_includes verb_icon(entry("publish", { "via" => "revision" })), "node_action_icon--history" |
| 144 | assert_includes verb_icon(entry("frobnicate")), "node_action_icon--circle-dashed" | 144 | assert_includes verb_icon(entry("frobnicate")), "node_action_icon--circle-dashed" |
| 145 | end | 145 | end |
| 146 | |||
| 147 | test "an event entry renders after its event is gone" do | ||
| 148 | event = Event.new(:title => "Chaostreff", :rrule => "FREQ=WEEKLY;BYDAY=TU", | ||
| 149 | :start_time => Time.utc(2026, 9, 1, 19, 0), | ||
| 150 | :end_time => Time.utc(2026, 9, 1, 21, 0)) | ||
| 151 | event.save_witnessed(:actor => users(:aaron)) | ||
| 152 | event.destroy_witnessed(:actor => users(:aaron)) | ||
| 153 | |||
| 154 | entry = NodeAction.where(:action => "event_destroy").order(:id).last | ||
| 155 | |||
| 156 | assert_match "Chaostreff", action_summary(entry) | ||
| 157 | assert_nothing_raised { event_changes_list(entry) } | ||
| 158 | end | ||
| 146 | end | 159 | end |
