From fe066e793d061c6c982a6998b683b6336434a5b3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 6 Mar 2010 20:35:38 +0000 Subject: [PATCH] Moves scm adapters unit tests to a dedicated folder. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3551 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../{ => lib/redmine/scm/adapters}/filesystem_adapter_test.rb | 2 +- test/unit/{ => lib/redmine/scm/adapters}/git_adapter_test.rb | 2 +- .../{ => lib/redmine/scm/adapters}/mercurial_adapter_test.rb | 2 +- .../{ => lib/redmine/scm/adapters}/subversion_adapter_test.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename test/unit/{ => lib/redmine/scm/adapters}/filesystem_adapter_test.rb (95%) rename test/unit/{ => lib/redmine/scm/adapters}/git_adapter_test.rb (95%) rename test/unit/{ => lib/redmine/scm/adapters}/mercurial_adapter_test.rb (96%) rename test/unit/{ => lib/redmine/scm/adapters}/subversion_adapter_test.rb (94%) diff --git a/test/unit/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb similarity index 95% rename from test/unit/filesystem_adapter_test.rb rename to test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb index 26e97bda..6e3b4cbb 100644 --- a/test/unit/filesystem_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb @@ -1,5 +1,5 @@ -require File.dirname(__FILE__) + '/../test_helper' +require File.dirname(__FILE__) + '/../../../../../test_helper' class FilesystemAdapterTest < ActiveSupport::TestCase diff --git a/test/unit/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb similarity index 95% rename from test/unit/git_adapter_test.rb rename to test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index 8bc000c4..e3c63374 100644 --- a/test/unit/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -1,4 +1,4 @@ -require File.dirname(__FILE__) + '/../test_helper' +require File.dirname(__FILE__) + '/../../../../../test_helper' class GitAdapterTest < ActiveSupport::TestCase REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/git_repository' diff --git a/test/unit/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb similarity index 96% rename from test/unit/mercurial_adapter_test.rb rename to test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb index f7b0d3c5..7396a395 100644 --- a/test/unit/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb @@ -1,4 +1,4 @@ -require File.dirname(__FILE__) + '/../test_helper' +require File.dirname(__FILE__) + '/../../../../../test_helper' begin require 'mocha' diff --git a/test/unit/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb similarity index 94% rename from test/unit/subversion_adapter_test.rb rename to test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb index ddef52df..e44d12f2 100644 --- a/test/unit/subversion_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb @@ -17,7 +17,7 @@ require 'mkmf' -require File.dirname(__FILE__) + '/../test_helper' +require File.dirname(__FILE__) + '/../../../../../test_helper' class SubversionAdapterTest < ActiveSupport::TestCase