summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-12 14:51:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-12 14:51:33 +0000
commit3dc4dbe302793ae735da15105d713c6d19d2d41e (patch)
tree1620d1c1d570dfa3fcea3aa2ba589515b005874f /test/unit
parent63ed494f214675068a7a2df0fba70480b81a37b1 (diff)
downloadredmine-3dc4dbe302793ae735da15105d713c6d19d2d41e.tar.gz
redmine-3dc4dbe302793ae735da15105d713c6d19d2d41e.zip
Fixed: error while moving an issue to a project with disabled tracker with SQLite3 (#5049).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3566 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/issue_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index f0db47a31..cf5369726 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -387,6 +387,16 @@ class IssueTest < ActiveSupport::TestCase
assert_equal 7, issue.fixed_version_id
end
+ def test_move_to_another_project_with_disabled_tracker
+ issue = Issue.find(1)
+ target = Project.find(2)
+ target.tracker_ids = [3]
+ target.save
+ assert_equal false, issue.move_to(target)
+ issue.reload
+ assert_equal 1, issue.project_id
+ end
+
def test_copy_to_the_same_project
issue = Issue.find(1)
copy = nil