diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:46:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-15 15:46:14 +0000 |
commit | a7bdc5e0afdfa56f2087faf6463926261713694d (patch) | |
tree | 61a8c765fc9b821431d6a7dc1054a150eef233a8 /test | |
parent | 712e5be29f9afccfa353d315fc6b664bdcdf8057 (diff) | |
download | redmine-a7bdc5e0afdfa56f2087faf6463926261713694d.tar.gz redmine-a7bdc5e0afdfa56f2087faf6463926261713694d.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/workflows_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb index 84250d346..0a35df5df 100644 --- a/test/functional/workflows_controller_test.rb +++ b/test/functional/workflows_controller_test.rb @@ -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 |