mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
Fixed that journals are shown multiple times in activity (#19168).
git-svn-id: http://svn.redmine.org/redmine/trunk@14163 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -76,6 +76,14 @@ class ActivityTest < ActiveSupport::TestCase
|
||||
assert_nil(events.detect {|e| e.event_author != user})
|
||||
end
|
||||
|
||||
def test_journal_with_notes_and_changes_should_be_returned_once
|
||||
f = Redmine::Activity::Fetcher.new(User.anonymous, :project => Project.find(1))
|
||||
f.scope = ['issues']
|
||||
events = f.events
|
||||
|
||||
assert_equal events, events.uniq
|
||||
end
|
||||
|
||||
def test_files_activity
|
||||
f = Redmine::Activity::Fetcher.new(User.anonymous, :project => Project.find(1))
|
||||
f.scope = ['files']
|
||||
|
||||
Reference in New Issue
Block a user