mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-11 18:54:31 +00:00
Moved skeleton to its own repository
This commit is contained in:
@@ -36,19 +36,13 @@ func TestNew(t *testing.T) {
|
||||
t.Run("Skeleton-Git", func(t *testing.T) {
|
||||
a := assert.New(t)
|
||||
c := newApp("new/test/c/1", model.NEW, nil, a)
|
||||
c.New.SkeletonPath = "git://github.com/revel/cmd:skeleton2"
|
||||
c.New.SkeletonPath = "git://github.com/revel/skeletons:basicnsadnsak"
|
||||
a.NotNil(main.Commands[model.NEW].RunWith(c), "Expected Failed to run with new")
|
||||
// We need to pick a different path
|
||||
c = newApp("new/test/c/2", model.NEW, nil, a)
|
||||
c.New.SkeletonPath = "git://github.com/revel/cmd:skeleton"
|
||||
c.New.SkeletonPath = "git://github.com/revel/skeletons:basic/bootstrap4"
|
||||
a.Nil(main.Commands[model.NEW].RunWith(c), "Failed to run with new skeleton git")
|
||||
})
|
||||
t.Run("Skeleton-Go", func(t *testing.T) {
|
||||
a := assert.New(t)
|
||||
c := newApp("new/test/d", model.NEW, nil, a)
|
||||
c.New.SkeletonPath = "github.com/revel/cmd:skeleton"
|
||||
a.Nil(main.Commands[model.NEW].RunWith(c), "Failed to run with new from go")
|
||||
})
|
||||
if !t.Failed() {
|
||||
if err := os.RemoveAll(gopath); err != nil {
|
||||
a.Fail("Failed to remove test path")
|
||||
|
||||
Reference in New Issue
Block a user