mirror of
https://github.com/redmine/redmine.git
synced 2026-08-07 15:19:05 +02:00
Don't show "Required" option for standard/custom fields that are always required.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10010 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -191,7 +191,7 @@ class WorkflowsControllerTest < ActionController::TestCase
|
||||
end
|
||||
end
|
||||
|
||||
def test_get_permissions_with_always_required_custom_field
|
||||
def test_get_permissions_with_required_custom_field_should_not_show_required_option
|
||||
cf = IssueCustomField.create!(:name => 'Foo', :field_format => 'string', :tracker_ids => [1], :is_required => true)
|
||||
|
||||
get :permissions, :role_id => 1, :tracker_id => 1
|
||||
@@ -201,7 +201,7 @@ class WorkflowsControllerTest < ActionController::TestCase
|
||||
# Custom field that is always required
|
||||
# The default option is "(Required)"
|
||||
assert_select 'select[name=?]', "permissions[#{cf.id}][3]" do
|
||||
assert_select 'option[value=]', :text => '(Required)'
|
||||
assert_select 'option[value=]'
|
||||
assert_select 'option[value=readonly]', :text => 'Read-only'
|
||||
assert_select 'option[value=required]', 0
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user