diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-26 13:35:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-10-26 13:35:17 +0000 |
commit | 8cce4851d75a326f1295eee4c4c79eaaf6cab250 (patch) | |
tree | 453fec0c9e2844bb0ca8e744ea026652ff97728e /test/functional/sys_controller_test.rb | |
parent | ace48137ad267f018886cd4549d12e2239d5b8e9 (diff) | |
download | redmine-8cce4851d75a326f1295eee4c4c79eaaf6cab250.tar.gz redmine-8cce4851d75a326f1295eee4c4c79eaaf6cab250.zip |
fix source indent of SysControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20197 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/sys_controller_test.rb')
-rw-r--r-- | test/functional/sys_controller_test.rb | 39 |
1 files changed, 24 insertions, 15 deletions
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 |