Better handling of issue update conflicts (#8691).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8774 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-04 17:36:15 +00:00
parent b9c26d6ddc
commit fb3b904b8f
53 changed files with 384 additions and 12 deletions
+7
View File
@@ -1237,6 +1237,13 @@ class IssueTest < ActiveSupport::TestCase
assert !@issue.recipients.include?(@issue.assigned_to.mail)
end
end
def test_last_journal_id_with_journals_should_return_the_journal_id
assert_equal 2, Issue.find(1).last_journal_id
end
def test_last_journal_id_without_journals_should_return_nil
assert_nil Issue.find(3).last_journal_id
end
end