create interface for crypto.CertManager

This commit is contained in:
Marten Seemann
2016-11-11 19:49:04 +07:00
parent 992678b9d7
commit f6cef67c3d
4 changed files with 39 additions and 9 deletions

View File

@@ -7,10 +7,10 @@ import (
)
var _ = Describe("Cert Manager", func() {
var cm *CertManager
var cm *certManager
BeforeEach(func() {
cm = &CertManager{}
cm = NewCertManager().(*certManager)
})
It("errors when given invalid data", func() {