scm: filesystem: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5861 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f36d8cacba
commit
eb65817ff9
|
@ -30,16 +30,15 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@ruby19_non_utf8_pass =
|
@ruby19_non_utf8_pass =
|
||||||
(RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8')
|
(RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8')
|
||||||
|
|
||||||
@controller = RepositoriesController.new
|
@controller = RepositoriesController.new
|
||||||
@request = ActionController::TestRequest.new
|
@request = ActionController::TestRequest.new
|
||||||
@response = ActionController::TestResponse.new
|
@response = ActionController::TestResponse.new
|
||||||
User.current = nil
|
User.current = nil
|
||||||
Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem')
|
Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem')
|
||||||
@repository = Repository::Filesystem.create(
|
@repository = Repository::Filesystem.create(
|
||||||
:project => Project.find(PRJ_ID),
|
:project => Project.find(PRJ_ID),
|
||||||
:url => REPOSITORY_PATH,
|
:url => REPOSITORY_PATH,
|
||||||
:path_encoding => ''
|
:path_encoding => ''
|
||||||
)
|
)
|
||||||
assert @repository
|
assert @repository
|
||||||
|
|
Loading…
Reference in New Issue