]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of CalendarsControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 21 Sep 2020 13:02:59 +0000 (13:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 21 Sep 2020 13:02:59 +0000 (13:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20053 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/calendars_controller_test.rb

index f18dcb5ef338f585e5bc45e87470aa301f9fbb38..538c3ad1f4e6f75a8f83160dea66f2660fac5abc 100644 (file)
@@ -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