From 438161ad1fd37aadbfa3f5a875540730fd6d70c3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 12 Jun 2007 20:12:05 +0000 Subject: 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 --- test/unit/repository_test.rb | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'test') 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 -- cgit v1.2.3