summaryrefslogtreecommitdiffstats
path: root/test/functional/reports_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-28 16:38:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-07-28 16:38:09 +0000
commit27c3299f328164f3e1abbece59248f1f68ef0b8c (patch)
treee77ed97a314a971996098450ac7f9ea0f26fd32b /test/functional/reports_controller_test.rb
parentdf7e56b13c26b22f9be78e5dcc7690accca3b5cb (diff)
downloadredmine-27c3299f328164f3e1abbece59248f1f68ef0b8c.tar.gz
redmine-27c3299f328164f3e1abbece59248f1f68ef0b8c.zip
Fixed that open/closed counts on issues summary are not displayed with SQLServer (#14369).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12060 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/reports_controller_test.rb')
-rw-r--r--test/functional/reports_controller_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb
index 56a1aca3f..25e4f7ba5 100644
--- a/test/functional/reports_controller_test.rb
+++ b/test/functional/reports_controller_test.rb
@@ -54,6 +54,24 @@ class ReportsControllerTest < ActionController::TestCase
end
end
+ def test_get_issue_report_details_by_tracker_should_show_issue_count
+ Issue.delete_all
+ Issue.generate!(:tracker_id => 1)
+ Issue.generate!(:tracker_id => 1)
+ Issue.generate!(:tracker_id => 1, :status_id => 5)
+ Issue.generate!(:tracker_id => 2)
+
+ get :issue_report_details, :id => 1, :detail => 'tracker'
+ assert_select 'table.list tbody :nth-child(1)' do
+ assert_select 'td', :text => 'Bug'
+ assert_select ':nth-child(2)', :text => '2' # status:1
+ assert_select ':nth-child(3)', :text => '-' # status:2
+ assert_select ':nth-child(8)', :text => '2' # open
+ assert_select ':nth-child(9)', :text => '1' # closed
+ assert_select ':nth-child(10)', :text => '3' # total
+ end
+ end
+
def test_get_issue_report_details_by_priority
get :issue_report_details, :id => 1, :detail => 'priority'
assert_equal IssuePriority.all.reverse, assigns(:rows)