github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/build/_fixtures/coke/models/models_test.go (about) 1 package models_test 2 3 import ( 4 "testing" 5 6 "github.com/gobuffalo/packr/v2" 7 "github.com/gobuffalo/suite" 8 ) 9 10 type ModelSuite struct { 11 *suite.Model 12 } 13 14 func Test_ModelSuite(t *testing.T) { 15 model, err := suite.NewModelWithFixtures(packr.New("../fixtures", "../fixtures")) 16 if err != nil { 17 t.Fatal(err) 18 } 19 20 as := &ModelSuite{ 21 Model: model, 22 } 23 suite.Run(t, as) 24 }