mirror of
https://github.com/acaloiaro/newsbox
synced 2026-07-21 10:12:26 +00:00
24 lines
320 B
Go
24 lines
320 B
Go
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)
|
|
}
|