mirror of
https://github.com/redmine/redmine.git
synced 2026-02-23 15:11:21 +01:00
Merge r24444 from trunk to 6.1-stable (#31972).
git-svn-id: https://svn.redmine.org/redmine/branches/6.1-stable@24447 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2007,6 +2007,26 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_with_group_by_and_nil_group_count_should_not_render_empty_badge
|
||||
Issue.generate!(:created_on => '2019-08-29 10:00:00')
|
||||
|
||||
IssueQuery.any_instance.stubs(:result_count_by_group).returns(nil)
|
||||
|
||||
get(
|
||||
:index,
|
||||
:params => {
|
||||
:set_filter => 1,
|
||||
:group_by => 'created_on'
|
||||
}
|
||||
)
|
||||
assert_response :success
|
||||
|
||||
assert_select 'tr.group' do
|
||||
assert_select 'span.name'
|
||||
assert_select 'span.badge-count.count', 0
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_with_int_custom_field_total
|
||||
field = IssueCustomField.generate!(:field_format => 'int', :is_for_all => true)
|
||||
CustomValue.create!(:customized => Issue.find(1), :custom_field => field, :value => '9800')
|
||||
|
||||
Reference in New Issue
Block a user