diff --git a/spec/controllers/profiles/notifications_controller_spec.rb b/spec/controllers/profiles/notifications_controller_spec.rb index 58caf7999cf..b97cdd4d489 100644 --- a/spec/controllers/profiles/notifications_controller_spec.rb +++ b/spec/controllers/profiles/notifications_controller_spec.rb @@ -5,7 +5,7 @@ describe Profiles::NotificationsController do create(:user) do |user| user.emails.create(email: 'original@example.com') user.emails.create(email: 'new@example.com') - user.update(notification_email: 'original@example.com') + user.notification_email = 'original@example.com' user.save! end end