Project

General

Profile

Feature #39500 » 0001-Refactor-unnecessary-use-of-instance-variables-in-Us.patch

Go MAEDA, 2023-11-01 16:04

View differences:

test/unit/user_test.rb
191 191
  end
192 192

  
193 193
  def test_user_before_create_should_set_the_mail_notification_to_the_default_setting
194
    @user1 = User.generate!
195
    assert_equal 'only_my_events', @user1.mail_notification
194
    user1 = User.generate!
195
    assert_equal 'only_my_events', user1.mail_notification
196 196
    with_settings :default_notification_option => 'all' do
197
      @user2 = User.generate!
198
      assert_equal 'all', @user2.mail_notification
197
      user2 = User.generate!
198
      assert_equal 'all', user2.mail_notification
199 199
    end
200 200
  end
201 201

  
(1-1/2)