mirror of
https://github.com/acaloiaro/newsbox
synced 2026-07-21 10:12:26 +00:00
24 lines
336 B
Go
24 lines
336 B
Go
package actions
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/gobuffalo/suite/v4"
|
|
)
|
|
|
|
type ActionSuite struct {
|
|
*suite.Action
|
|
}
|
|
|
|
func Test_ActionSuite(t *testing.T) {
|
|
action, err := suite.NewActionWithFixtures(App(), os.DirFS("../fixtures"))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
as := &ActionSuite{
|
|
Action: action,
|
|
}
|
|
suite.Run(t, as)
|
|
}
|