summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-12 20:12:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-12 20:12:05 +0000
commit438161ad1fd37aadbfa3f5a875540730fd6d70c3 (patch)
treeb396b2379835a6f768023cdc0f7042259f560875 /test
parent4dddb606a6d24c7f95e52f08e689464ab6f8b5b8 (diff)
downloadredmine-438161ad1fd37aadbfa3f5a875540730fd6d70c3.tar.gz
redmine-438161ad1fd37aadbfa3f5a875540730fd6d70c3.zip
Added basic support for CVS and Mercurial SCMs.
Browsing, changesets fetching and diff viewing are implemented. Only tested with local repositories. Thanks to Ralph Vater for CVS specific code. git-svn-id: http://redmine.rubyforge.org/svn/trunk@559 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/repository_test.rb16
1 files changed, 1 insertions, 15 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index fd4fb6737..e420b6452 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -25,7 +25,7 @@ class RepositoryTest < Test::Unit::TestCase
end
def test_create
- repository = Repository.new(:project => Project.find(2))
+ repository = Repository::Subversion.new(:project => Project.find(2))
assert !repository.save
repository.url = "svn://localhost"
@@ -34,12 +34,6 @@ class RepositoryTest < Test::Unit::TestCase
project = Project.find(2)
assert_equal repository, project.repository
- end
-
- def test_cant_change_url
- url = @repository.url
- @repository.url = "svn://anotherhost"
- assert_equal url, @repository.url
end
def test_scan_changesets_for_issue_ids
@@ -59,12 +53,4 @@ class RepositoryTest < Test::Unit::TestCase
# ignoring commits referencing an issue of another project
assert_equal [], Issue.find(4).changesets
end
-
- def test_changesets_with_path
- @repository.changesets_with_path '/some/path' do
- assert_equal 1, @repository.changesets.count(:select => "DISTINCT #{Changeset.table_name}.id")
- changesets = @repository.changesets.find(:all)
- assert_equal 1, changesets.size
- end
- end
end