diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0bbf8cbde..850e0595a 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -15,7 +15,6 @@ Layout/AlignArguments: - 'lib/redmine/scm/adapters/bazaar_adapter.rb' - 'test/functional/journals_controller_test.rb' - 'test/functional/my_controller_test.rb' - - 'test/functional/roles_controller_test.rb' - 'test/integration/api_test/attachments_test.rb' - 'test/integration/api_test/groups_test.rb' - 'test/integration/api_test/issue_relations_test.rb' diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb index 2bce1aa52..89d7c974e 100644 --- a/test/functional/roles_controller_test.rb +++ b/test/functional/roles_controller_test.rb @@ -69,8 +69,10 @@ class RolesControllerTest < Redmine::ControllerTest get :new assert_response :success - assert_equal %w(view_documents view_issues), + assert_equal( + %w(view_documents view_issues), css_select('input[name="role[permissions][]"][checked=checked]').map {|e| e.attr('value')}.sort + ) end def test_new_with_copy