mirror of
https://github.com/redmine/redmine.git
synced 2026-02-24 07:31:22 +01:00
Merged r24415 from trunk to 6.1-stable (#33610).
git-svn-id: https://svn.redmine.org/redmine/branches/6.1-stable@24420 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1623,6 +1623,19 @@ class IssueTest < ActiveSupport::TestCase
|
||||
assert_not_equal updated_on_was, issue.updated_on
|
||||
end
|
||||
|
||||
def test_adding_journal_with_notes_and_details_empty_should_not_update_timestamp
|
||||
issue = Issue.find(1)
|
||||
updated_on_was = issue.updated_on
|
||||
|
||||
issue.init_journal(User.first)
|
||||
assert_no_difference 'Journal.count' do
|
||||
assert issue.save
|
||||
end
|
||||
issue.reload
|
||||
|
||||
assert_equal updated_on_was, issue.updated_on
|
||||
end
|
||||
|
||||
def test_should_close_duplicates
|
||||
# Create 3 issues
|
||||
issue1 = Issue.generate!
|
||||
|
||||
Reference in New Issue
Block a user