##// END OF EJS Templates
scm: filesystem: code clean up functional test....
Toshi MARUYAMA -
r5741:eb65817ff9b8
parent child
Show More
@@ -30,16 +30,15 class RepositoriesFilesystemControllerTest < ActionController::TestCase
30 30
31 31 def setup
32 32 @ruby19_non_utf8_pass =
33 (RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8')
34
33 (RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8')
35 34 @controller = RepositoriesController.new
36 35 @request = ActionController::TestRequest.new
37 36 @response = ActionController::TestResponse.new
38 37 User.current = nil
39 38 Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem')
40 39 @repository = Repository::Filesystem.create(
41 :project => Project.find(PRJ_ID),
42 :url => REPOSITORY_PATH,
40 :project => Project.find(PRJ_ID),
41 :url => REPOSITORY_PATH,
43 42 :path_encoding => ''
44 43 )
45 44 assert @repository
General Comments 0
You need to be logged in to leave comments. Login now