mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 19:05:51 +01:00
Ticket grouping (#2679).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2696 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -161,6 +161,22 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
assert_not_nil assigns(:issues)
|
||||
end
|
||||
|
||||
def test_index_with_query
|
||||
get :index, :project_id => 1, :query_id => 5
|
||||
assert_response :success
|
||||
assert_template 'index.rhtml'
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_nil assigns(:issue_count_by_group)
|
||||
end
|
||||
|
||||
def test_index_with_grouped_query
|
||||
get :index, :project_id => 1, :query_id => 6
|
||||
assert_response :success
|
||||
assert_template 'index.rhtml'
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_not_nil assigns(:issue_count_by_group)
|
||||
end
|
||||
|
||||
def test_index_csv_with_project
|
||||
get :index, :format => 'csv'
|
||||
assert_response :success
|
||||
@@ -194,6 +210,11 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_equal 'application/pdf', @response.content_type
|
||||
|
||||
get :index, :project_id => 1, :query_id => 6, :format => 'pdf'
|
||||
assert_response :success
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_equal 'application/pdf', @response.content_type
|
||||
end
|
||||
|
||||
def test_index_sort
|
||||
|
||||
Reference in New Issue
Block a user