diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-13 18:57:12 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-02-13 18:57:12 +0000 |
commit | cccfed7006f11e34902c2863053e29317807b453 (patch) | |
tree | 9d89be2530f62fdf5e48bc5899680709d12bf2cf /test/unit/project_test.rb | |
parent | 7fa18cad5771ea63cb1c55a24ade75a573af5dae (diff) | |
download | redmine-cccfed7006f11e34902c2863053e29317807b453.tar.gz redmine-cccfed7006f11e34902c2863053e29317807b453.zip |
Fixed: error when creating a project with a version format custom field (#10218).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8865 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r-- | test/unit/project_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 2901b6efa..0c45420b6 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -598,6 +598,13 @@ class ProjectTest < ActiveSupport::TestCase assert !versions.collect(&:id).include?(6) end + def test_shared_versions_for_new_project_should_include_system_shared_versions + p = Project.find(5) + v = Version.create!(:name => 'system_sharing', :project => p, :sharing => 'system') + + assert_include v, Project.new.shared_versions + end + def test_next_identifier ProjectCustomField.delete_all Project.create!(:name => 'last', :identifier => 'p2008040') |