diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-24 06:14:33 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-24 06:14:33 +0000 |
commit | ffa4e02817479f1b657c69f640630c8d4c3b8a29 (patch) | |
tree | afb36c8b831d240af76acfa4b192bea77b47eabb /test/functional/timelog_controller_test.rb | |
parent | e08b2d0f32005e8af0e416858dde0558b1f99e8f (diff) | |
download | redmine-ffa4e02817479f1b657c69f640630c8d4c3b8a29.tar.gz redmine-ffa4e02817479f1b657c69f640630c8d4c3b8a29.zip |
Group time entries by created date (#30233).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18003 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index 4ab5b3d59..5c3319276 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -1371,4 +1371,18 @@ class TimelogControllerTest < Redmine::ControllerTest assert_not_nil line assert_include "#{issue.tracker} #1: #{issue.subject}", line end + + def test_index_grouped_by_created_on + skip unless TimeEntryQuery.new.groupable_columns.detect {|c| c.name == :created_on} + + get :index, :params => { + :set_filter => 1, + :group_by => 'created_on' + } + assert_response :success + + assert_select 'tr.group span.name', :text => '03/23/2007' do + assert_select '+ span.count', :text => '2' + end + end end |