comparison test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents cbce1fd3b1b7
children 433d4f72a19b
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 require File.expand_path('../../../../../../test_helper', __FILE__) 1 require File.expand_path('../../../../../../test_helper', __FILE__)
2 begin 2 begin
3 require 'mocha' 3 require 'mocha'
4 4
5 class CvsAdapterTest < ActiveSupport::TestCase 5 class CvsAdapterTest < ActiveSupport::TestCase
6 6 REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
7 REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') + '/tmp/test/cvs_repository'
8 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin? 7 REPOSITORY_PATH.gsub!(/\//, "\\") if Redmine::Platform.mswin?
9 MODULE_NAME = 'test' 8 MODULE_NAME = 'test'
10 9
11 if File.directory?(REPOSITORY_PATH) 10 if File.directory?(REPOSITORY_PATH)
12 def setup 11 def setup