Make repository identifier accept underscores (#11192).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9875 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-06-19 19:12:17 +00:00
parent 6c6aae07a2
commit 3b854bee59
2 changed files with 11 additions and 2 deletions
+9
View File
@@ -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