Reflect the latest changes in revel related to testsuite

This commit is contained in:
anonx
2014-11-25 16:17:20 +06:00
parent a13856d4d0
commit 09c730bcea
2 changed files with 3 additions and 2 deletions

View File

@@ -322,6 +322,7 @@ import (
"reflect"
"github.com/revel/revel"{{range $k, $v := $.ImportPaths}}
{{$v}} "{{$k}}"{{end}}
"github.com/revel/revel/testing"
)
var (
@@ -360,7 +361,7 @@ func main() {
{{$line}}: "{{$key}}",{{end}}
},{{end}}
}
revel.TestSuites = []interface{}{ {{range .TestSuites}}
testing.TestSuites = []interface{}{ {{range .TestSuites}}
(*{{index $.ImportPaths .ImportPath}}.{{.StructName}})(nil),{{end}}
}

View File

@@ -681,7 +681,7 @@ func (s *SourceInfo) ControllerSpecs() []*TypeInfo {
func (s *SourceInfo) TestSuites() []*TypeInfo {
if s.testSuites == nil {
s.testSuites = s.TypesThatEmbed(revel.REVEL_IMPORT_PATH + ".TestSuite")
s.testSuites = s.TypesThatEmbed(revel.REVEL_IMPORT_PATH + "/testing.TestSuite")
}
return s.testSuites
}