@@ -30,16 +30,15 class RepositoriesFilesystemControllerTest < ActionController::TestCase | |||||
30 |
|
30 | |||
31 | def setup |
|
31 | def setup | |
32 | @ruby19_non_utf8_pass = |
|
32 | @ruby19_non_utf8_pass = | |
33 | (RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8') |
|
33 | (RUBY_VERSION >= '1.9' && Encoding.default_external.to_s != 'UTF-8') | |
34 |
|
||||
35 | @controller = RepositoriesController.new |
|
34 | @controller = RepositoriesController.new | |
36 | @request = ActionController::TestRequest.new |
|
35 | @request = ActionController::TestRequest.new | |
37 | @response = ActionController::TestResponse.new |
|
36 | @response = ActionController::TestResponse.new | |
38 | User.current = nil |
|
37 | User.current = nil | |
39 | Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem') |
|
38 | Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem') | |
40 | @repository = Repository::Filesystem.create( |
|
39 | @repository = Repository::Filesystem.create( | |
41 | :project => Project.find(PRJ_ID), |
|
40 | :project => Project.find(PRJ_ID), | |
42 | :url => REPOSITORY_PATH, |
|
41 | :url => REPOSITORY_PATH, | |
43 | :path_encoding => '' |
|
42 | :path_encoding => '' | |
44 | ) |
|
43 | ) | |
45 | assert @repository |
|
44 | assert @repository |
General Comments 0
You need to be logged in to leave comments.
Login now