]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression and Style/RedundantParenthe...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 16 Nov 2019 12:38:38 +0000 (12:38 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 16 Nov 2019 12:38:38 +0000 (12:38 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19082 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/helpers/application_helper_test.rb

index 349506676e1ee68e9dd0439977e9be6295081c57..e91e986efd0ca12838fbc85a7c5da38dd4f71cba 100644 (file)
@@ -228,7 +228,6 @@ Layout/SpaceAfterNot:
     - 'test/functional/repositories_git_controller_test.rb'
     - 'test/functional/timelog_controller_test.rb'
     - 'test/functional/workflows_controller_test.rb'
-    - 'test/helpers/application_helper_test.rb'
     - 'test/unit/attachment_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
     - 'test/unit/project_copy_test.rb'
@@ -412,7 +411,6 @@ Lint/ParenthesesAsGroupedExpression:
     - 'test/functional/my_controller_test.rb'
     - 'test/functional/settings_controller_test.rb'
     - 'test/functional/users_controller_test.rb'
-    - 'test/helpers/application_helper_test.rb'
     - 'test/unit/attachment_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
 
@@ -1423,7 +1421,6 @@ Style/RedundantParentheses:
     - 'lib/redmine/platform.rb'
     - 'lib/redmine/scm/adapters/cvs_adapter.rb'
     - 'lib/redmine/scm/adapters/filesystem_adapter.rb'
-    - 'test/helpers/application_helper_test.rb'
     - 'test/unit/attachment_test.rb'
     - 'test/unit/lib/redmine/export/pdf_test.rb'
     - 'test/unit/project_test.rb'
index 072c05102d456b57ff38316ce9ac1000de796453..e9a95972c2d3fe16555b2bbd9df636b682c1b912 100644 (file)
@@ -247,12 +247,12 @@ class ApplicationHelperTest < Redmine::HelperTest
     a1 = Attachment.find(16)
     assert_equal "testfile.png", a1.filename
     assert a1.readable?
-    assert (! a1.visible?(User.anonymous))
+    assert_not a1.visible?(User.anonymous)
     assert a1.visible?(User.find(2))
     a2 = Attachment.find(17)
     assert_equal "testfile.PNG", a2.filename
     assert a2.readable?
-    assert (! a2.visible?(User.anonymous))
+    assert_not a2.visible?(User.anonymous)
     assert a2.visible?(User.find(2))
     assert a1.created_on < a2.created_on