test: add tests for Server model

This commit is contained in:
Adam Cooke
2024-02-23 22:51:34 +00:00
committed by Adam Cooke
parent 8b61100082
commit 2023200d91
19 changed files with 707 additions and 64 deletions
+2
View File
@@ -3,6 +3,8 @@
require "postal/config"
if Postal.config&.smtp
# TODO: by default, we should just send mail through the local Postal
# installation rather than having to actually configure an SMTP server.
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = { address: Postal.config.smtp.host, user_name: Postal.config.smtp.username, password: Postal.config.smtp.password, port: Postal.config.smtp.port || 25 }
end