diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-26 15:01:46 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-09-26 15:01:46 +0000 |
commit | 8df1fc3544d818553d449be8858961be3aaf607f (patch) | |
tree | e47a2dc672f99243471f2d82cc14f1d4d8e02284 /test/functional/admin_controller_test.rb | |
parent | a9aea31657730e632a076f4817f3925d69b9142e (diff) | |
download | redmine-8df1fc3544d818553d449be8858961be3aaf607f.tar.gz redmine-8df1fc3544d818553d449be8858961be3aaf607f.zip |
fix source indent of AdminControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20081 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/admin_controller_test.rb')
-rw-r--r-- | test/functional/admin_controller_test.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb index fcb075656..5138a252b 100644 --- a/test/functional/admin_controller_test.rb +++ b/test/functional/admin_controller_test.rb @@ -45,18 +45,24 @@ class AdminControllerTest < Redmine::ControllerTest end def test_projects_with_status_filter - get :projects, :params => { + get( + :projects, + :params => { :status => 1 } + ) assert_response :success assert_select 'tr.project.closed', 0 end def test_projects_with_name_filter - get :projects, :params => { + get( + :projects, + :params => { :name => 'store', :status => '' } + ) assert_response :success assert_select 'tr.project td.name', :text => 'OnlineStore' @@ -65,9 +71,12 @@ class AdminControllerTest < Redmine::ControllerTest def test_load_default_configuration_data delete_configuration_data - post :default_configuration, :params => { + post( + :default_configuration, + :params => { :lang => 'fr' } + ) assert_response :redirect assert_nil flash[:error] assert IssueStatus.find_by_name('Nouveau') @@ -76,9 +85,12 @@ class AdminControllerTest < Redmine::ControllerTest def test_load_default_configuration_data_should_rescue_error delete_configuration_data Redmine::DefaultData::Loader.stubs(:load).raises(StandardError.new("Something went wrong")) - post :default_configuration, :params => { + post( + :default_configuration, + :params => { :lang => 'fr' } + ) assert_response :redirect assert_not_nil flash[:error] assert_match /Something went wrong/, flash[:error] |