Simplify spec

This commit is contained in:
Stan Hu 2017-03-24 15:10:26 -07:00
parent dac68bc684
commit 49d8c1c891

View file

@ -5,7 +5,7 @@ describe Profiles::NotificationsController do
create(:user) do |user| create(:user) do |user|
user.emails.create(email: 'original@example.com') user.emails.create(email: 'original@example.com')
user.emails.create(email: 'new@example.com') user.emails.create(email: 'new@example.com')
user.update(notification_email: 'original@example.com') user.notification_email = 'original@example.com'
user.save! user.save!
end end
end end