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
+5
View File
@@ -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