mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 03:17:41 +02:00
Merged r9875 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9951 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
changesets = Changeset.count(:all, :conditions => "repository_id = 10")
|
||||
changes = Change.count(:all, :conditions => "repository_id = 10",
|
||||
|
||||
Reference in New Issue
Block a user