summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-03-24 15:10:26 -0700
committerStan Hu <stanhu@gmail.com>2017-03-24 15:10:26 -0700
commit49d8c1c891c5da0fd668dcf052450ccc5f018310 (patch)
treeef64a90f916061c153dc2e867cc4f1aed68224a6 /spec/controllers
parentdac68bc684863fa08bed8bf8397f9e4bd6a0fa6d (diff)
downloadgitlab-ce-49d8c1c891c5da0fd668dcf052450ccc5f018310.tar.gz
Simplify spec
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/profiles/notifications_controller_spec.rb2
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