|
|
|
@ -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 |
|
|
|
|