|
@ -20,6 +20,14 @@ var _ = Describe("Read", func() { |
|
|
os.Clearenv() |
|
|
os.Clearenv() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
It("parses valid configuration", func() { |
|
|
|
|
|
aValidEnv() |
|
|
|
|
|
|
|
|
|
|
|
c, err := config.Read() |
|
|
|
|
|
Expect(err).NotTo(HaveOccurred()) |
|
|
|
|
|
Expect(c).ToNot(BeNil()) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
Context("Gitea", func() { |
|
|
Context("Gitea", func() { |
|
|
It("parses configuration", func() { |
|
|
It("parses configuration", func() { |
|
|
aValidEnv() |
|
|
aValidEnv() |
|
|