mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
Add support for grouping by issue on timelog view (#32436).
Patch by Kouhei Sutou. git-svn-id: http://svn.redmine.org/redmine/trunk@19063 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1418,4 +1418,18 @@ class TimelogControllerTest < Redmine::ControllerTest
|
||||
assert_select '+ span.count', :text => '2'
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_grouped_by_issue
|
||||
get :index, :params => {
|
||||
:set_filter => 1,
|
||||
:group_by => 'issue'
|
||||
}
|
||||
assert_response :success
|
||||
|
||||
assert_select 'tr.group span.name' do |elements|
|
||||
target_element = elements[1]
|
||||
assert_equal "Bug #1: Cannot print recipes", target_element.text
|
||||
assert_select target_element, '+ span.count', :text => '2'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user