From e7684657831a8b23ee08caf14e2d5678e7c0f388 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 21 Sep 2020 13:02:59 +0000 Subject: [PATCH] fix source indent of CalendarsControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@20053 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/calendars_controller_test.rb | 38 ++++++++++++++------ 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index f18dcb5ef..538c3ad1f 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -41,9 +41,12 @@ class CalendarsControllerTest < Redmine::ControllerTest travel_to issues(:issues_002).start_date with_settings :gravatar_enabled => '1' do - get :show, :params => { + get( + :show, + :params => { :project_id => 1 } + ) end assert_response :success @@ -68,10 +71,12 @@ class CalendarsControllerTest < Redmine::ControllerTest def test_show_should_run_custom_queries @query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC) - - get :show, :params => { + get( + :show, + :params => { :query_id => @query.id } + ) assert_response :success assert_select 'h2', :text => 'Calendar Query' end @@ -83,10 +88,13 @@ class CalendarsControllerTest < Redmine::ControllerTest def test_week_number_calculation with_settings :start_of_week => 7 do - get :show, :params => { + get( + :show, + :params => { :month => '1', :year => '2010' } + ) assert_response :success end @@ -103,10 +111,13 @@ class CalendarsControllerTest < Redmine::ControllerTest end with_settings :start_of_week => 1 do - get :show, :params => { + get( + :show, + :params => { :month => '1', :year => '2010' } + ) assert_response :success end @@ -124,28 +135,35 @@ class CalendarsControllerTest < Redmine::ControllerTest end def test_show_custom_query_with_multiple_sort_criteria - get :show, :params => { + get( + :show, + :params => { :query_id => 5 } - + ) assert_response :success assert_select 'h2', :text => 'Open issues by priority and tracker' end def test_show_custom_query_with_group_by_option - get :show, :params => { + get( + :show, + :params => { :query_id => 6 } - + ) assert_response :success assert_select 'h2', :text => 'Open issues grouped by tracker' end def test_show_calendar_day_css_classes - get :show, :params => { + get( + :show, + :params => { :month => '12', :year => '2016' } + ) assert_response :success assert_select 'tr:nth-child(2)' do -- 2.39.5