diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb index d84cb6e7..35ed51c0 100644 --- a/app/mailers/application_mailer.rb +++ b/app/mailers/application_mailer.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true class ApplicationMailer < ActionMailer::Base - default from: 'from@example.com' + default from: 'no-reply@example.com' layout 'mailer' end diff --git a/config/application.rb b/config/application.rb index 64e201f5..094793d7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -48,7 +48,7 @@ class Application < Rails::Application config.action_mailer.default_url_options = { host: ENV.fetch('SERVER_HOST', nil), port: ENV.fetch('PORT', 3000) } config.action_mailer.default_options = { - from: 'no-reply@api.com' + from: 'no-reply@example.com' } config.action_mailer.deliver_later_queue_name = 'mailers' diff --git a/config/initializers/devise.rb b/config/initializers/devise.rb index d26bcb5c..fe50ca55 100644 --- a/config/initializers/devise.rb +++ b/config/initializers/devise.rb @@ -7,7 +7,7 @@ # Configure the e-mail address which will be shown in Devise::Mailer, # note that it will be overwritten if you use your own mailer class # with default "from" parameter. - config.mailer_sender = 'no-reply@yourapi.com' + config.mailer_sender = 'no-reply@example.com' # Configure the class responsible to send e-mails. # config.mailer = 'Devise::Mailer' diff --git a/spec/requests/api/v1/users/create_spec.rb b/spec/requests/api/v1/users/create_spec.rb index 4c7eea95..f2d19b19 100644 --- a/spec/requests/api/v1/users/create_spec.rb +++ b/spec/requests/api/v1/users/create_spec.rb @@ -4,7 +4,7 @@ subject { post user_registration_path, params:, as: :json } let(:user) { User.last } - let(:email) { 'test@test.com' } + let(:email) { 'test@example.com' } let(:params) do {