summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-07-18 08:06:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-07-18 08:06:51 +0000
commit36d8f3519246898c402683a1b1575660f52de260 (patch)
tree60ffd4efc023d6286dc698eb9254b634ab0992a1 /test
parentd41bd93acbea908676302a975aa8c52e1fbed0d4 (diff)
downloadredmine-36d8f3519246898c402683a1b1575660f52de260.tar.gz
redmine-36d8f3519246898c402683a1b1575660f52de260.zip
Prevent creation of project with identifier 'new' (#3602).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2821 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/project_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index 2c8745856..60bc4f1c1 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -52,7 +52,8 @@ class ProjectTest < Test::Unit::TestCase
to_test = {"abc" => true,
"ab12" => true,
"ab-12" => true,
- "12" => false}
+ "12" => false,
+ "new" => false}
to_test.each do |identifier, valid|
p = Project.new