diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-28 08:05:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-09-28 08:05:55 +0000 |
commit | 925ef8f4f0387e955823dc9db849d0ba24b1291d (patch) | |
tree | 06bf2b8c59cd5b1ee708b0fdfd3cb1e056b79f42 /test/unit/issue_status_test.rb | |
parent | ad06bec6b6b9900aceb101bafe8fd369096d19a1 (diff) | |
download | redmine-925ef8f4f0387e955823dc9db849d0ba24b1291d.tar.gz redmine-925ef8f4f0387e955823dc9db849d0ba24b1291d.zip |
Fixed: the default status is lost when reordering issue statuses (#1955).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1911 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_status_test.rb')
-rw-r--r-- | test/unit/issue_status_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index 404bc36ba..b36112cd1 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_test.rb @@ -46,4 +46,11 @@ class IssueStatusTest < Test::Unit::TestCase assert_equal status, IssueStatus.default assert !IssueStatus.find(1).is_default end + + def test_reorder_should_not_clear_default_status + status = IssueStatus.default + status.move_to_bottom + status.reload + assert status.is_default? + end end |