mirror of
https://github.com/redmine/redmine.git
synced 2026-02-01 04:09:56 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user