Adds test helpers for test repositories.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3720 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-05-01 08:32:21 +00:00
parent 80f7faf10a
commit 1be15816dd
4 changed files with 15 additions and 13 deletions
@@ -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