Run SQL tests in memory

This commit is contained in:
Deluan
2020-01-13 09:06:11 -05:00
committed by Deluan Quintão
parent 87ca885b5e
commit 4b08df0725
6 changed files with 20 additions and 16 deletions
@@ -10,8 +10,8 @@ var _ = Describe("PropertyRepository", func() {
var repo domain.PropertyRepository
BeforeEach(func() {
Db().Raw("delete from property").Exec()
repo = NewPropertyRepository()
repo.(*propertyRepository).DeleteAll()
})
It("saves and retrieves data", func() {