Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-03-25 01:10:26 +0300
committerStan Hu <stanhu@gmail.com>2017-03-25 01:10:26 +0300
commit49d8c1c891c5da0fd668dcf052450ccc5f018310 (patch)
treeef64a90f916061c153dc2e867cc4f1aed68224a6 /spec/controllers/profiles
parentdac68bc684863fa08bed8bf8397f9e4bd6a0fa6d (diff)
Simplify spec
Diffstat (limited to 'spec/controllers/profiles')
-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