first commit
way too late.
This commit is contained in:
commit
d4f7dc57fc
53 files changed
+3518
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/didiercrunch/doormanserver/inmemoryconnector"
|
||||
"github.com/didiercrunch/doormanserver/doormen"
|
||||
)
|
||||
|
||||
func TestCreateDoorman(t *testing.T) {
|
||||
wab := doormen.NewDoormanDefinition("some_name")
|
||||
conn = inmemoryconnector.NewInMemoryDBConnector()
|
||||
|
||||
if err := CreateDoormanInDatabase(wab); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if err := CreateDoormanInDatabase(wab); err == nil {
|
||||
t.Error("should have an error here")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user