]> source.dussan.org Git - redmine.git/commitdiff
Adds tests for #27153.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 7 Jan 2018 22:28:37 +0000 (22:28 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 7 Jan 2018 22:28:37 +0000 (22:28 +0000)
Patch by Marius BALTEANU.

git-svn-id: http://svn.redmine.org/redmine/trunk@17156 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/calendars_controller_test.rb

index 31f3f84b7e5f971023840231af84ce0691714fc8..8a45bb3644777a5509f0e417acd8901fe0958a46 100644 (file)
@@ -29,7 +29,8 @@ class CalendarsControllerTest < Redmine::ControllerTest
            :issue_statuses,
            :issue_relations,
            :issue_categories,
-           :enumerations
+           :enumerations,
+           :queries
 
   def test_show
     get :show, :params => {
@@ -105,4 +106,22 @@ class CalendarsControllerTest < Redmine::ControllerTest
       assert_select 'td.even', :text => '10'
     end
   end
+
+  def test_show_custom_query_with_multiple_sort_criteria
+    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 => {
+        :query_id => 6
+      }
+      
+    assert_response :success
+    assert_select 'h2', :text => 'Open issues grouped by tracker'
+  end
 end