mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
test: add tests for Server model
This commit is contained in:
@@ -28,5 +28,10 @@ FactoryBot.define do
|
||||
name { "Acme Inc" }
|
||||
sequence(:permalink) { |n| "org#{n}" }
|
||||
association :owner, factory: :user
|
||||
|
||||
trait :suspended do
|
||||
suspended_at { 1.day.ago }
|
||||
suspension_reason { "test" }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user