mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 19:26:59 +02:00
Fixed that updated_on is not updated when updating an issue (#10964).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9703 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -445,6 +445,19 @@ class IssueTest < ActiveSupport::TestCase
|
||||
issue.save!
|
||||
end
|
||||
|
||||
def test_adding_journal_should_update_timestamp
|
||||
issue = Issue.find(1)
|
||||
updated_on_was = issue.updated_on
|
||||
|
||||
issue.init_journal(User.first, "Adding notes")
|
||||
assert_difference 'Journal.count' do
|
||||
assert issue.save
|
||||
end
|
||||
issue.reload
|
||||
|
||||
assert_not_equal updated_on_was, issue.updated_on
|
||||
end
|
||||
|
||||
def test_should_close_duplicates
|
||||
# Create 3 issues
|
||||
project = Project.find(1)
|
||||
|
||||
Reference in New Issue
Block a user