Skip to content

Commit

Permalink
Update year from 2018 -> 2019 in scaffold tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneutt committed Jan 21, 2019
1 parent c4e10eb commit eff8a42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scaffold/project/project_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var _ = Describe("Project", func() {
})

It("should match the golden file", func() {
instance := &Boilerplate{Year: "2018", License: "apache2", Owner: "The Kubernetes authors"}
instance := &Boilerplate{Year: "2019", License: "apache2", Owner: "The Kubernetes authors"}
Expect(s.Execute(input.Options{}, instance)).NotTo(HaveOccurred())
Expect(result.Actual.String()).To(BeEquivalentTo(result.Golden))
})
Expand All @@ -45,15 +45,15 @@ var _ = Describe("Project", func() {

Context("for apache2", func() {
It("should write the apache2 boilerplate with specified owners", func() {
instance := &Boilerplate{Year: "2018", Owner: "Example Owners"}
instance := &Boilerplate{Year: "2019", Owner: "Example Owners"}
Expect(s.Execute(input.Options{}, instance)).NotTo(HaveOccurred())
e := strings.Replace(
result.Golden, "The Kubernetes authors", "Example Owners", -1)
Expect(result.Actual.String()).To(BeEquivalentTo(e))
})

It("should use apache2 as the default", func() {
instance := &Boilerplate{Year: "2018", Owner: "The Kubernetes authors"}
instance := &Boilerplate{Year: "2019", Owner: "The Kubernetes authors"}
Expect(s.Execute(input.Options{}, instance)).NotTo(HaveOccurred())
Expect(result.Actual.String()).To(BeEquivalentTo(result.Golden))
})
Expand Down

0 comments on commit eff8a42

Please sign in to comment.