diff options
author | Stan Hu <stanhu@gmail.com> | 2017-03-24 15:10:26 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-03-24 15:10:26 -0700 |
commit | 49d8c1c891c5da0fd668dcf052450ccc5f018310 (patch) | |
tree | ef64a90f916061c153dc2e867cc4f1aed68224a6 /spec/controllers | |
parent | dac68bc684863fa08bed8bf8397f9e4bd6a0fa6d (diff) | |
download | gitlab-ce-49d8c1c891c5da0fd668dcf052450ccc5f018310.tar.gz |
Simplify spec
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/profiles/notifications_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |