]> source.dussan.org Git - redmine.git/commitdiff
scm: filesystem: code clean up functional test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 May 2011 01:00:24 +0000 (01:00 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 21 May 2011 01:00:24 +0000 (01:00 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5861 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_filesystem_controller_test.rb

index b1e33b392f9b06d4a118bc9cbd60ca6c8ca8274d..ec8332331575f48258819f9704a34991d6795084 100644 (file)
@@ -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