summaryrefslogtreecommitdiff
path: root/spec/mailers/emails/in_product_marketing_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/emails/in_product_marketing_spec.rb')
-rw-r--r--spec/mailers/emails/in_product_marketing_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mailers/emails/in_product_marketing_spec.rb b/spec/mailers/emails/in_product_marketing_spec.rb
index 74354630ade..99beef92dea 100644
--- a/spec/mailers/emails/in_product_marketing_spec.rb
+++ b/spec/mailers/emails/in_product_marketing_spec.rb
@@ -23,7 +23,7 @@ RSpec.describe Emails::InProductMarketing do
it 'sends to the right user with a link to unsubscribe' do
aggregate_failures do
- expect(subject).to deliver_to(user.notification_email)
+ expect(subject).to deliver_to(user.notification_email_or_default)
expect(subject).to have_body_text(profile_notifications_url)
end
end