Files
gin-gonic-prepack/models/tenanted_test.go
2022-05-01 20:49:03 +02:00

12 lines
224 B
Go

package models
import "testing"
func TestCannotCreateUntenanted(t *testing.T) {
tnt := Tenanted{}
if err := tnt.BeforeCreate(nil); err == nil {
t.Errorf("allowed creation of Tenanted model without Tenant value")
}
}