summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-20 18:25:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-20 18:25:38 +0000
commitf279b48288fee4c0bea73d7caffc2287d3a2ae47 (patch)
tree8b4ebf3dae6202a68f6ee1381d8e013501096154 /test/test_helper.rb
parent85462261aca8aa78a51c8152578a067044b0c532 (diff)
downloadredmine-f279b48288fee4c0bea73d7caffc2287d3a2ae47.tar.gz
redmine-f279b48288fee4c0bea73d7caffc2287d3a2ae47.zip
Fixes subversion tests not running on win32.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5175 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 230cc5869..647189c09 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -109,6 +109,13 @@ class ActiveSupport::TestCase
File.join(RAILS_ROOT.gsub(%r{config\/\.\.}, ''), "/tmp/test/#{vendor.downcase}_repository")
end
+ # Returns the url of the subbversion test repository
+ def self.subversion_repository_url
+ path = repository_path('subversion')
+ path = '/' + path unless path.starts_with?('/')
+ "file://#{path}"
+ end
+
# Returns true if the +vendor+ test repository is configured
def self.repository_configured?(vendor)
File.directory?(repository_path(vendor))