diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-19 19:12:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-06-19 19:12:17 +0000 |
commit | 3b854bee59211a8a1889f3630c5316a71d182c70 (patch) | |
tree | 4dd39345641b5be6ccc81b6c7a377b774b92b84e /test/unit/repository_test.rb | |
parent | 6c6aae07a2371871aaa7f56721101e691804eaa5 (diff) | |
download | redmine-3b854bee59211a8a1889f3630c5316a71d182c70.tar.gz redmine-3b854bee59211a8a1889f3630c5316a71d182c70.zip |
Make repository identifier accept underscores (#11192).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9875 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/repository_test.rb')
-rw-r--r-- | test/unit/repository_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 0bd9af4b5..bf17b8884 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -97,6 +97,15 @@ class RepositoryTest < ActiveSupport::TestCase assert_equal [repository1, repository2], Project.find(3).repositories.sort end + def test_identifier_should_accept_letters_digits_dashes_and_underscores + r = Repository::Subversion.new( + :project_id => 3, + :identifier => 'svn-123_45', + :url => 'file:///svn' + ) + assert r.save + end + def test_destroy repository = Repository.find(10) changesets = repository.changesets.count |