diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-05-01 08:32:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2010-05-01 08:32:21 +0000 |
commit | 1be15816dd30d10339a0dcf2faf44da31fc3e8e5 (patch) | |
tree | b4a2d86d9dc975657695a3681e067675c8223d8a /test/functional | |
parent | 80f7faf10aa5a572b25adf2b08a80777472af7b1 (diff) | |
download | redmine-1be15816dd30d10339a0dcf2faf44da31fc3e8e5.tar.gz redmine-1be15816dd30d10339a0dcf2faf44da31fc3e8e5.zip |
Adds test helpers for test repositories.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3720 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/repositories_subversion_controller_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index f07c7ea1a..d28646d44 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -26,9 +26,6 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase :repositories, :issues, :issue_statuses, :changesets, :changes, :issue_categories, :enumerations, :custom_fields, :custom_values, :trackers - # No '..' in the repository path for svn - REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/subversion_repository' - def setup @controller = RepositoriesController.new @request = ActionController::TestRequest.new @@ -37,7 +34,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase User.current = nil end - if File.directory?(REPOSITORY_PATH) + if repository_configured?('subversion') def test_show get :show, :id => 1 assert_response :success |