journals are the events, now
This commit is contained in:
parent
ccc4688799
commit
b16d63454d
|
@ -77,8 +77,8 @@ class ActivityTest < ActiveSupport::TestCase
|
||||||
events = f.events
|
events = f.events
|
||||||
|
|
||||||
assert_kind_of Array, 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('Project', 1).last_journal)
|
||||||
assert events.include?(Attachment.find_by_container_type_and_container_id('Version', 1))
|
assert events.include?(Attachment.find_by_container_type_and_container_id('Version', 1).last_journal)
|
||||||
assert_equal [Attachment], events.collect(&:class).uniq
|
assert_equal [Attachment], events.collect(&:class).uniq
|
||||||
assert_equal %w(Project Version), events.collect(&:container_type).uniq.sort
|
assert_equal %w(Project Version), events.collect(&:container_type).uniq.sort
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue