scm: mercurial: replace RAILS_ROOT to Rails.root in functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6052 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7e38ccab55
commit
3b3616ed21
|
@ -22,11 +22,10 @@ require 'repositories_controller'
|
||||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
class RepositoriesController; def rescue_action(e) raise e end; end
|
||||||
|
|
||||||
class RepositoriesMercurialControllerTest < ActionController::TestCase
|
class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||||
fixtures :projects, :users, :roles, :members, :member_roles, :repositories, :enabled_modules
|
fixtures :projects, :users, :roles, :members, :member_roles,
|
||||||
|
:repositories, :enabled_modules
|
||||||
|
|
||||||
# No '..' in the repository path
|
REPOSITORY_PATH = Rails.root.join('tmp/test/mercurial_repository').to_s
|
||||||
REPOSITORY_PATH = RAILS_ROOT.gsub(%r{config\/\.\.}, '') +
|
|
||||||
'/tmp/test/mercurial_repository'
|
|
||||||
CHAR_1_HEX = "\xc3\x9c"
|
CHAR_1_HEX = "\xc3\x9c"
|
||||||
PRJ_ID = 3
|
PRJ_ID = 3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue