Adds REST API for versions (#7403).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-07-04 19:34:58 +00:00
parent daa426167f
commit b86a748b1d
8 changed files with 249 additions and 46 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
# Redmine - project management software
# Copyright (C) 2006-2008 Jean-Philippe Lang
# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -27,6 +27,7 @@ class VersionTest < ActiveSupport::TestCase
v = Version.new(:project => Project.find(1), :name => '1.1', :effective_date => '2011-03-25')
assert v.save
assert_equal 'open', v.status
assert_equal 'none', v.sharing
end
def test_invalid_effective_date_validation