From 91ea72e2b7ca0deae298146eadb65281753dfead Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:44:07 +0000 Subject: [PATCH] cleanup: rubocop: fix Lint/ParenthesesAsGroupedExpression in test/functional/account_controller_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19266 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - test/functional/account_controller_test.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ecec91511..df5bd12c7 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index a56fcdc03..8b9ced75a 100644 --- a/test/functional/account_controller_test.rb +++ b/test/functional/account_controller_test.rb @@ -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 -- 2.39.5