test: add initial tests for Postal::SMTPServer::Client

This commit is contained in:
Adam Cooke
2024-02-12 18:07:44 +00:00
parent ec636661d5
commit dece1d487a
19 changed files with 780 additions and 44 deletions
+14
View File
@@ -0,0 +1,14 @@
# frozen_string_literal: true
FactoryBot.define do
factory :route do
name { "test" }
mode { "Accept" }
spam_mode { "Mark" }
before(:create) do |route|
route.server ||= create(:server)
route.domain ||= create(:domain, owner: route.server)
end
end
end