@@ -32,7 +32,7 @@ var _ = Describe("Project", func() {
32
32
})
33
33
34
34
It ("should match the golden file" , func () {
35
- instance := & Boilerplate {Year : "2018 " , License : "apache2" , Owner : "The Kubernetes authors" }
35
+ instance := & Boilerplate {Year : "2019 " , License : "apache2" , Owner : "The Kubernetes authors" }
36
36
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
37
37
Expect (result .Actual .String ()).To (BeEquivalentTo (result .Golden ))
38
38
})
@@ -45,15 +45,15 @@ var _ = Describe("Project", func() {
45
45
46
46
Context ("for apache2" , func () {
47
47
It ("should write the apache2 boilerplate with specified owners" , func () {
48
- instance := & Boilerplate {Year : "2018 " , Owner : "Example Owners" }
48
+ instance := & Boilerplate {Year : "2019 " , Owner : "Example Owners" }
49
49
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
50
50
e := strings .Replace (
51
51
result .Golden , "The Kubernetes authors" , "Example Owners" , - 1 )
52
52
Expect (result .Actual .String ()).To (BeEquivalentTo (e ))
53
53
})
54
54
55
55
It ("should use apache2 as the default" , func () {
56
- instance := & Boilerplate {Year : "2018 " , Owner : "The Kubernetes authors" }
56
+ instance := & Boilerplate {Year : "2019 " , Owner : "The Kubernetes authors" }
57
57
Expect (s .Execute (input.Options {}, instance )).NotTo (HaveOccurred ())
58
58
Expect (result .Actual .String ()).To (BeEquivalentTo (result .Golden ))
59
59
})
0 commit comments