Simplify spec
This commit is contained in:
parent
dac68bc684
commit
49d8c1c891
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue