journals are the events, now

This commit is contained in:
Tim Felgentreff 2010-09-14 15:21:02 +02:00
parent ccc4688799
commit b16d63454d
1 changed files with 2 additions and 2 deletions

View File

@ -77,8 +77,8 @@ class ActivityTest < ActiveSupport::TestCase
events = f.events
assert_kind_of Array, events
assert events.include?(Attachment.find_by_container_type_and_container_id('Project', 1))
assert events.include?(Attachment.find_by_container_type_and_container_id('Version', 1))
assert events.include?(Attachment.find_by_container_type_and_container_id('Project', 1).last_journal)
assert events.include?(Attachment.find_by_container_type_and_container_id('Version', 1).last_journal)
assert_equal [Attachment], events.collect(&:class).uniq
assert_equal %w(Project Version), events.collect(&:container_type).uniq.sort
end