diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 22:28:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-01-07 22:28:37 +0000 |
commit | 10f96ab2ab4c136876c58bef304de00ad33405a0 (patch) | |
tree | fe8cb1acd09fc10ad1397e0f80750bc162cbf667 | |
parent | 747e183a6b4043d119f5ef48969729952d38e03f (diff) | |
download | redmine-10f96ab2ab4c136876c58bef304de00ad33405a0.tar.gz redmine-10f96ab2ab4c136876c58bef304de00ad33405a0.zip |
Adds tests for #27153.
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@17156 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/calendars_controller_test.rb | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index 31f3f84b7..8a45bb364 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -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 |