summaryrefslogtreecommitdiffstats
path: root/test/functional/workflows_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:54:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-04-11 07:54:20 +0000
commitb474ad67de5aa50489fedc136358563ea5eba324 (patch)
tree088f0c0884f3ef105b242122b5e34d735128d5bd /test/functional/workflows_controller_test.rb
parent09eef4e75c022cb4b196b6612e65a74bd8f156ed (diff)
downloadredmine-b474ad67de5aa50489fedc136358563ea5eba324.tar.gz
redmine-b474ad67de5aa50489fedc136358563ea5eba324.zip
"Required" and "Read-only" rules on "Fields Permissions" screen are not colored (#19580).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@14160 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/workflows_controller_test.rb')
-rw-r--r--test/functional/workflows_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 85e0a1cf5..d59614aea 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -257,6 +257,15 @@ class WorkflowsControllerTest < ActionController::TestCase
assert_equal IssueStatus.sorted.to_a, assigns(:statuses)
end
+ def test_get_permissions_should_set_css_class
+ WorkflowPermission.delete_all
+ WorkflowPermission.create!(:role_id => 1, :tracker_id => 2, :old_status_id => 1, :field_name => 'assigned_to_id', :rule => 'required')
+
+ get :permissions, :role_id => 1, :tracker_id => 2
+ assert_response :success
+ assert_select 'td.required > select[name=?]', 'permissions[1][assigned_to_id]'
+ end
+
def test_post_permissions
WorkflowPermission.delete_all