]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression in test/functional/account_...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:07 +0000 (16:44 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:44:07 +0000 (16:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19266 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/functional/account_controller_test.rb

index ecec9151168366023c552078cf271bb8ef1daa21..df5bd12c776b0dd576925719d7725fa552e82984 100644 (file)
@@ -384,7 +384,6 @@ Lint/Loop:
 
 Lint/ParenthesesAsGroupedExpression:
   Exclude:
-    - 'test/functional/account_controller_test.rb'
     - 'test/functional/email_addresses_controller_test.rb'
     - 'test/functional/my_controller_test.rb'
     - 'test/functional/settings_controller_test.rb'
index a56fcdc03fe5fa0c8f3e11734945a7e9a879c2c9..8b9ced75aa3ed5672641052b8fdcdb753295b3f2 100644 (file)
@@ -547,7 +547,7 @@ class AccountControllerTest < Redmine::ControllerTest
     user.reload
     assert user.check_password?('newpass123')
     assert_nil Token.find_by_id(token.id), "Token was not deleted"
-    assert_not_nil (mail = ActionMailer::Base.deliveries.last)
+    assert_not_nil ActionMailer::Base.deliveries.last
     assert_select_email do
       assert_select 'a[href^=?]', 'http://localhost:3000/my/password', :text => 'Change password'
     end