From 49d8c1c891c5da0fd668dcf052450ccc5f018310 Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Fri, 24 Mar 2017 15:10:26 -0700 Subject: [PATCH] Simplify spec --- spec/controllers/profiles/notifications_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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