@@ -78,7 +78,7 @@ var _ = Describe("Resource", func() {
78
78
Expect (instance .Validate ().Error ()).To (ContainSubstring ("kind cannot be empty" ))
79
79
})
80
80
81
- It ("should fail if the Kind is not camel cased" , func () {
81
+ It ("should fail if the Kind is not pascal cased" , func () {
82
82
// Base case
83
83
instance := & resource.Resource {Group : "crew" , Kind : "FirstMate" , Version : "v1" }
84
84
Expect (instance .Validate ()).To (Succeed ())
@@ -90,12 +90,12 @@ var _ = Describe("Resource", func() {
90
90
instance = & resource.Resource {Group : "crew" , Kind : "firstMate" , Version : "v1" }
91
91
Expect (instance .Validate ()).NotTo (Succeed ())
92
92
Expect (instance .Validate ().Error ()).To (ContainSubstring (
93
- `kind must be camelcase (expected FirstMate was firstMate)` ))
93
+ `kind must be PascalCase (expected FirstMate was firstMate)` ))
94
94
95
95
instance = & resource.Resource {Group : "crew" , Kind : "firstmate" , Version : "v1" }
96
96
Expect (instance .Validate ()).NotTo (Succeed ())
97
97
Expect (instance .Validate ().Error ()).To (ContainSubstring (
98
- `kind must be camelcase (expected Firstmate was firstmate)` ))
98
+ `kind must be PascalCase (expected FirstMate was firstmate)` ))
99
99
})
100
100
101
101
It ("should default the Resource by pluralizing the Kind" , func () {
0 commit comments