Adds option for displaying all statuses on workflow permissions.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9995 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-07-15 15:46:14 +00:00
parent 712e5be29f
commit a7bdc5e0af
3 changed files with 22 additions and 9 deletions
@@ -191,6 +191,14 @@ class WorkflowsControllerTest < ActionController::TestCase
end
end
def test_get_permissions_with_role_and_tracker_and_all_statuses
WorkflowTransition.delete_all
get :permissions, :role_id => 1, :tracker_id => 2, :used_statuses_only => '0'
assert_response :success
assert_equal IssueStatus.sorted.all, assigns(:statuses)
end
def test_post_permissions
WorkflowPermission.delete_all