github.com/segakazzz/buffalo@v0.16.22-0.20210119082501-1f52048d3feb/genny/newapp/core/templates/actions/actions_test.go.tmpl (about)

     1  package actions
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/gobuffalo/packr/v2"
     7  	"github.com/gobuffalo/suite"
     8  )
     9  
    10  type ActionSuite struct {
    11  	*suite.Action
    12  }
    13  
    14  func Test_ActionSuite(t *testing.T) {
    15  	action, err := suite.NewActionWithFixtures(App(), packr.New("Test_ActionSuite", "../fixtures"))
    16  	if err != nil {
    17  		t.Fatal(err)
    18  	}
    19  
    20  	as := &ActionSuite{
    21  		Action: action,
    22  	}
    23  	suite.Run(t, as)
    24  }