@@ -1,5 +1,5 | |||||
1 |
# |
|
1 | # Redmine - project management software | |
2 | # Copyright (C) 2006 Jean-Philippe Lang |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
@@ -17,7 +17,7 | |||||
17 |
|
17 | |||
18 | module VersionsHelper |
|
18 | module VersionsHelper | |
19 |
|
19 | |||
20 | STATUS_BY_CRITERIAS = %w(category tracker priority author assigned_to) |
|
20 | STATUS_BY_CRITERIAS = %w(category tracker status priority author assigned_to) | |
21 |
|
21 | |||
22 | def render_issue_status_by(version, criteria) |
|
22 | def render_issue_status_by(version, criteria) | |
23 | criteria ||= 'category' |
|
23 | criteria ||= 'category' |
@@ -1,5 +1,5 | |||||
1 |
# |
|
1 | # Redmine - project management software | |
2 |
# Copyright (C) 2006-20 |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
@@ -22,7 +22,7 require 'versions_controller' | |||||
22 | class VersionsController; def rescue_action(e) raise e end; end |
|
22 | class VersionsController; def rescue_action(e) raise e end; end | |
23 |
|
23 | |||
24 | class VersionsControllerTest < ActionController::TestCase |
|
24 | class VersionsControllerTest < ActionController::TestCase | |
25 | fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules |
|
25 | fixtures :projects, :versions, :issues, :users, :roles, :members, :member_roles, :enabled_modules, :issue_statuses | |
26 |
|
26 | |||
27 | def setup |
|
27 | def setup | |
28 | @controller = VersionsController.new |
|
28 | @controller = VersionsController.new | |
@@ -145,4 +145,10 class VersionsControllerTest < ActionController::TestCase | |||||
145 | assert_response :success |
|
145 | assert_response :success | |
146 | assert_template '_issue_counts' |
|
146 | assert_template '_issue_counts' | |
147 | end |
|
147 | end | |
|
148 | ||||
|
149 | def test_issue_status_by_status | |||
|
150 | xhr :get, :status_by, :id => 2, :status_by => 'status' | |||
|
151 | assert_response :success | |||
|
152 | assert_template '_issue_counts' | |||
|
153 | end | |||
148 | end |
|
154 | end |
General Comments 0
You need to be logged in to leave comments.
Login now