From a73ffaebd3e996a722c2d5020d45235abc37d85e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 8 Dec 2023 08:17:05 +0000 Subject: [PATCH] Code cleanup: unnecessary use of instance variables in UserTest (#39500). git-svn-id: https://svn.redmine.org/redmine/trunk@22503 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/user_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 74d759846..823365842 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -191,11 +191,11 @@ class UserTest < ActiveSupport::TestCase end def test_user_before_create_should_set_the_mail_notification_to_the_default_setting - @user1 = User.generate! - assert_equal 'only_my_events', @user1.mail_notification + user1 = User.generate! + assert_equal 'only_my_events', user1.mail_notification with_settings :default_notification_option => 'all' do - @user2 = User.generate! - assert_equal 'all', @user2.mail_notification + user2 = User.generate! + assert_equal 'all', user2.mail_notification end end