test/test_helper.rb in giraffesoft-timeline_fu-0.1.1 vs test/test_helper.rb in giraffesoft-timeline_fu-0.2.0
- old
+ new
@@ -53,12 +53,16 @@
class Comment < ActiveRecord::Base
belongs_to :list
belongs_to :author, :class_name => "Person"
- fires :comment_created, :actor => :author,
- :on => :create,
+ fires :comment_created, :actor => :author,
+ :on => :create,
:secondary_subject => :list
+ fires :comment_deleted, :actor => :author,
+ :on => :destroy,
+ :subject => :list,
+ :secondary_subject => :self
end
TimelineEvent = Class.new
class Test::Unit::TestCase