Adds version status to limit issue assignments (#1245).

Available version statuses are:
* open: no restriction
* locked: can not assign new issues to the version
* closed: can not assign new issues and can not reopen assigned issues

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3020 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-11-08 13:03:41 +00:00
parent 7c14c6d42e
commit d201c54455
49 changed files with 293 additions and 15 deletions
+1
View File
@@ -26,6 +26,7 @@ class VersionTest < ActiveSupport::TestCase
def test_create
v = Version.new(:project => Project.find(1), :name => '1.1', :effective_date => '2011-03-25')
assert v.save
assert_equal 'open', v.status
end
def test_invalid_effective_date_validation