summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 08:32:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-05-01 08:32:21 +0000
commit1be15816dd30d10339a0dcf2faf44da31fc3e8e5 (patch)
treeb4a2d86d9dc975657695a3681e067675c8223d8a /test/functional
parent80f7faf10aa5a572b25adf2b08a80777472af7b1 (diff)
downloadredmine-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.rb5
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