summaryrefslogtreecommitdiffstats
path: root/test/functional/versions_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-20 21:06:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-20 21:06:30 +0000
commite1ae0e97771256b099b1dc2de2e40254a144a8dd (patch)
tree775aa3dbfc3fae10d611611ccb0ec5e08e40649a /test/functional/versions_controller_test.rb
parent82538dd07e17be08536090fa206782e20dff540a (diff)
downloadredmine-e1ae0e97771256b099b1dc2de2e40254a144a8dd.tar.gz
redmine-e1ae0e97771256b099b1dc2de2e40254a144a8dd.zip
Adds an option to view issues count by status on the version page (#7921).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5179 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/versions_controller_test.rb')
-rw-r--r--test/functional/versions_controller_test.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 96ab49443..de0e3062c 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -1,5 +1,5 @@
-# redMine - project management software
-# Copyright (C) 2006-2007 Jean-Philippe Lang
+# Redmine - project management software
+# Copyright (C) 2006-2011 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -22,7 +22,7 @@ require 'versions_controller'
class VersionsController; def rescue_action(e) raise e end; end
class VersionsControllerTest < ActionController::TestCase
- fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules
+ fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules, :issue_statuses
def setup
@controller = VersionsController.new
@@ -145,4 +145,10 @@ class VersionsControllerTest < ActionController::TestCase
assert_response :success
assert_template '_issue_counts'
end
+
+ def test_issue_status_by_status
+ xhr :get, :status_by, :id => 2, :status_by => 'status'
+ assert_response :success
+ assert_template '_issue_counts'
+ end
end