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