From: Toshi MARUYAMA Date: Mon, 26 Oct 2020 13:35:17 +0000 (+0000) Subject: fix source indent of SysControllerTest X-Git-Tag: 4.2.0~620 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cce4851d75a326f1295eee4c4c79eaaf6cab250;p=redmine.git fix source indent of SysControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20197 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb index cde82632b..828632ec6 100644 --- a/test/functional/sys_controller_test.rb +++ b/test/functional/sys_controller_test.rb @@ -50,11 +50,14 @@ class SysControllerTest < Redmine::ControllerTest def test_create_project_repository assert_nil Project.find(4).repository - post :create_project_repository, :params => { - :id => 4, - :vendor => 'Subversion', - :repository => { :url => 'file:///create/project/repository/subproject2'} - } + post( + :create_project_repository, + :params => { + :id => 4, + :vendor => 'Subversion', + :repository => {:url => 'file:///create/project/repository/subproject2'} + } + ) assert_response :created assert_equal 'application/json', @response.media_type @@ -72,20 +75,26 @@ class SysControllerTest < Redmine::ControllerTest end def test_create_already_existing - post :create_project_repository, :params => { - :id => 1, - :vendor => 'Subversion', - :repository => { :url => 'file:///create/project/repository/subproject2'} - } + post( + :create_project_repository, + :params => { + :id => 1, + :vendor => 'Subversion', + :repository => {:url => 'file:///create/project/repository/subproject2'} + } + ) assert_response :conflict end def test_create_with_failure - post :create_project_repository, :params => { - :id => 4, - :vendor => 'Subversion', - :repository => { :url => 'invalid url'} - } + post( + :create_project_repository, + :params => { + :id => 4, + :vendor => 'Subversion', + :repository => {:url => 'invalid url'} + } + ) assert_response :unprocessable_entity end