Project

General

Profile

Defect #27153 » tests_for_custom_query_breaks_calendar_view.patch

Marius BĂLTEANU, 2017-10-16 00:12

View differences:

test/functional/calendars_controller_test.rb
29 29
           :issue_statuses,
30 30
           :issue_relations,
31 31
           :issue_categories,
32
           :enumerations
32
           :enumerations,
33
           :queries
33 34

  
34 35
  def test_show
35 36
    get :show, :params => {
......
105 106
      assert_select 'td.even', :text => '10'
106 107
    end
107 108
  end
109

  
110
  def test_show_custom_query_with_multiple_sort_criteria
111
    get :show, :params => {
112
        :query_id => 5
113
      }
114

  
115
    assert_response :success
116
    assert_select 'h2', :text => 'Open issues by priority and tracker'
117
  end
118

  
119
  def test_show_custom_query_with_group_by_option
120
    get :show, :params => {
121
        :query_id => 6
122
      }
123
      
124
    assert_response :success
125
    assert_select 'h2', :text => 'Open issues grouped by tracker'
126
  end
108 127
end
(6-6/6)