github.com/lenfree/buffalo@v0.7.3-0.20170207163156-891616ea4064/examples/hello-world/actions/home_test.go (about) 1 package actions_test 2 3 import ( 4 "testing" 5 6 "github.com/gobuffalo/buffalo/examples/hello-world/actions" 7 "github.com/markbates/willie" 8 "github.com/stretchr/testify/require" 9 ) 10 11 func Test_HomeHandler(t *testing.T) { 12 r := require.New(t) 13 14 w := willie.New(actions.App()) 15 res := w.Request("/").Get() 16 17 r.Equal(200, res.Code) 18 r.Contains(res.Body.String(), "Welcome to Buffalo!") 19 }