summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-26 10:54:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-04-26 10:54:46 +0000
commit1d570a40ff1eb51c2a2c7d807c742083c6cfbde6 (patch)
treecefc1d58a807646843076055b9ec4cc19e3e25fa /test
parent76b92fb999750402a448af0226c871bcef0ec2d9 (diff)
downloadredmine-1d570a40ff1eb51c2a2c7d807c742083c6cfbde6.tar.gz
redmine-1d570a40ff1eb51c2a2c7d807c742083c6cfbde6.zip
Fixed: ActiveRecord::StaleObjectError exception on closing a set of circular duplicate issues (#1105).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1360 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/issue_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 7712b764e..3ceba1851 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -48,6 +48,8 @@ class IssueTest < Test::Unit::TestCase
IssueRelation.create(:issue_from => issue1, :issue_to => issue2, :relation_type => IssueRelation::TYPE_DUPLICATES)
# And 3 is a dupe of 2
IssueRelation.create(:issue_from => issue2, :issue_to => issue3, :relation_type => IssueRelation::TYPE_DUPLICATES)
+ # And 3 is a dupe of 1 (circular duplicates)
+ IssueRelation.create(:issue_from => issue1, :issue_to => issue3, :relation_type => IssueRelation::TYPE_DUPLICATES)
assert issue1.reload.duplicates.include?(issue2)