summaryrefslogtreecommitdiffstats
path: root/test/functional/workflows_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-03 20:21:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-03 20:21:03 +0000
commit5222650d952390d3435848397a46d8aa1dbda09e (patch)
tree6ef084faa30f3bba0d0d1e361247f86c1f4da21d /test/functional/workflows_controller_test.rb
parent1059f9a99ec41a8e320d4d66684e65d183270920 (diff)
downloadredmine-5222650d952390d3435848397a46d8aa1dbda09e.tar.gz
redmine-5222650d952390d3435848397a46d8aa1dbda09e.zip
Adds a few tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r--test/functional/workflows_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 10d68bf15..7a21972cb 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -61,6 +61,13 @@ class WorkflowsControllerTest < ActionController::TestCase
assert_select 'input[type=checkbox][name=?]', 'transitions[1][1][always]', 0
end
+ def test_get_edit_with_all_roles_and_all_trackers
+ get :edit, :role_id => 'all', :tracker_id => 'all'
+ assert_response :success
+ assert_equal Role.sorted.to_a, assigns(:roles)
+ assert_equal Tracker.sorted.to_a, assigns(:trackers)
+ end
+
def test_get_edit_with_role_and_tracker_and_all_statuses
WorkflowTransition.delete_all