newsbox/models/models_test.go

25 lines
320 B
Go
Raw Normal View History

2023-02-15 16:56:06 +00:00
package models
import (
"os"
"testing"
"github.com/gobuffalo/suite/v4"
)
type ModelSuite struct {
*suite.Model
}
func Test_ModelSuite(t *testing.T) {
model, err := suite.NewModelWithFixtures(os.DirFS("../fixtures"))
if err != nil {
t.Fatal(err)
}
as := &ModelSuite{
Model: model,
}
suite.Run(t, as)
}