github.com/orderbynull/buffalo@v0.11.1/generators/resource/generator_test.go (about) 1 package resource 2 3 import ( 4 "testing" 5 6 "github.com/stretchr/testify/require" 7 ) 8 9 func Test_New_WithNestedName(t *testing.T) { 10 r := require.New(t) 11 12 g, err := New("", "admin/user") 13 r.NoError(err) 14 name := g.Name 15 r.Equal("admin_user_id", name.ParamID()) 16 }