Skip to content

Commit ad021c9

Browse files
Update resource_test.go
1 parent 07c0904 commit ad021c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/scaffold/v1/resource/resource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var _ = Describe("Resource", func() {
7878
Expect(instance.Validate().Error()).To(ContainSubstring("kind cannot be empty"))
7979
})
8080

81-
It("should fail if the Kind is not camel cased", func() {
81+
It("should fail if the Kind is not pascal cased", func() {
8282
// Base case
8383
instance := &resource.Resource{Group: "crew", Kind: "FirstMate", Version: "v1"}
8484
Expect(instance.Validate()).To(Succeed())
@@ -90,12 +90,12 @@ var _ = Describe("Resource", func() {
9090
instance = &resource.Resource{Group: "crew", Kind: "firstMate", Version: "v1"}
9191
Expect(instance.Validate()).NotTo(Succeed())
9292
Expect(instance.Validate().Error()).To(ContainSubstring(
93-
`kind must be camelcase (expected FirstMate was firstMate)`))
93+
`kind must be PascalCase (expected FirstMate was firstMate)`))
9494

9595
instance = &resource.Resource{Group: "crew", Kind: "firstmate", Version: "v1"}
9696
Expect(instance.Validate()).NotTo(Succeed())
9797
Expect(instance.Validate().Error()).To(ContainSubstring(
98-
`kind must be camelcase (expected Firstmate was firstmate)`))
98+
`kind must be PascalCase (expected FirstMate was firstmate)`))
9999
})
100100

101101
It("should default the Resource by pluralizing the Kind", func() {

0 commit comments

Comments
 (0)