Adds a few tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@13695 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-03 20:21:03 +00:00
parent 1059f9a99e
commit 5222650d95
9 changed files with 127 additions and 3 deletions

View File

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