diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-21 01:00:24 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-05-21 01:00:24 +0000 |
commit | eb65817ff9b84f0446a0de2bcd4f0a921df0bbae (patch) | |
tree | 57ccce5208fabadc9051b0f7bba58a464462434d /test/functional/repositories_filesystem_controller_test.rb | |
parent | f36d8cacba07ec1af823cdc9af729da28b7a1a6f (diff) | |
download | redmine-eb65817ff9b84f0446a0de2bcd4f0a921df0bbae.tar.gz redmine-eb65817ff9b84f0446a0de2bcd4f0a921df0bbae.zip |
scm: filesystem: code clean up functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5861 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_filesystem_controller_test.rb')
-rw-r--r-- | test/functional/repositories_filesystem_controller_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index b1e33b392..ec8332331 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -30,16 +30,15 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase def setup @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 @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new User.current = nil Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem') @repository = Repository::Filesystem.create( - :project => Project.find(PRJ_ID), - :url => REPOSITORY_PATH, + :project => Project.find(PRJ_ID), + :url => REPOSITORY_PATH, :path_encoding => '' ) assert @repository |