Skip to content

Commit 7ec576e

Browse files
committed
Merge branch 'development' of github.com:gobuffalo/pop into development
2 parents 3426fc7 + 9c5f1cb commit 7ec576e

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

genny/model/_fixtures/models/widget_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
package models_test
2-
3-
import "testing"
1+
package models
42

53
func (ms *ModelSuite) Test_Widget() {
64
ms.Fail("This test needs to be implemented!")

genny/model/options.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package model
22

33
import (
4-
"fmt"
54
"path/filepath"
65
"strings"
76

@@ -33,7 +32,7 @@ func (opts *Options) Validate() error {
3332
opts.Package = filepath.Base(opts.Path)
3433
}
3534
if len(opts.TestPackage) == 0 {
36-
opts.TestPackage = fmt.Sprintf("%s_%s", opts.Package, "test")
35+
opts.TestPackage = opts.Package
3736
}
3837
if len(opts.Encoding) == 0 {
3938
opts.Encoding = "json"

genny/model/options_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func Test_Options_Validate(t *testing.T) {
2020
r.Equal(0, len(opts.Attrs))
2121
r.Equal("models", opts.Path)
2222
r.Equal("models", opts.Package)
23-
r.Equal("models_test", opts.TestPackage)
23+
r.Equal("models", opts.TestPackage)
2424
r.Equal("json", opts.Encoding)
2525

2626
// Force ID opt
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package {{.opts.TestPackage}}
22

3-
import "testing"
4-
53
func (ms *ModelSuite) Test_{{.model.Name.Proper}}() {
64
ms.Fail("This test needs to be implemented!")
75
}

0 commit comments

Comments
 (0)