testing devise mailer

This commit is contained in:
rgarcia
2017-01-10 19:51:19 +01:00
parent ef7988649d
commit 0049b6154c

View File

@@ -15,7 +15,7 @@ Devise.setup do |config|
if Rails.env.test? || !ActiveRecord::Base.connection.table_exists?('settings')
config.mailer_sender = "noreply@consul.dev"
else
config.mailer_sender = "#{Setting['mailer_from_name']} <#{Setting['mailer_from_address']}>"
config.mailer_sender = "'#{Setting['mailer_from_name']}' <#{Setting['mailer_from_address']}>"
end
# Configure the class responsible to send e-mails.