summaryrefslogtreecommitdiffstats
path: root/test/unit/version_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-08 13:03:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-11-08 13:03:41 +0000
commitd201c54455fd15d0069de5a60bc99a57cc380ba3 (patch)
treeef8c74e1de77b36bb2548c43a09a21897b9c41ec /test/unit/version_test.rb
parent7c14c6d42e469f1cd81b08c059a9717566fe4e1f (diff)
downloadredmine-d201c54455fd15d0069de5a60bc99a57cc380ba3.tar.gz
redmine-d201c54455fd15d0069de5a60bc99a57cc380ba3.zip
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
Diffstat (limited to 'test/unit/version_test.rb')
-rw-r--r--test/unit/version_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index 7df857927..5702fd181 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -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