diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-04-12 07:55:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-04-12 07:55:30 +0000 |
commit | cb9d405db3ba4b2ec772a0c67dd8f45e192f01b0 (patch) | |
tree | a07f86923ad5793c9856a3f4b86ad191fc700a8b /test/unit/activity_test.rb | |
parent | 3d1c40cd525feebb0818a29c0940d45ae58203b9 (diff) | |
download | redmine-cb9d405db3ba4b2ec772a0c67dd8f45e192f01b0.tar.gz redmine-cb9d405db3ba4b2ec772a0c67dd8f45e192f01b0.zip |
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
Diffstat (limited to 'test/unit/activity_test.rb')
-rw-r--r-- | test/unit/activity_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb index afb5a111c..5df2699b6 100644 --- a/test/unit/activity_test.rb +++ b/test/unit/activity_test.rb @@ -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'] |