This commit is contained in:
Deluan
2016-03-02 13:18:39 -05:00
parent 9d41f5a39f
commit 4843ccb46c
42 changed files with 150 additions and 160 deletions
+7 -7
View File
@@ -1,11 +1,11 @@
package persistence
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
"github.com/deluan/gosonic/tests"
"github.com/deluan/gosonic/domain"
"strconv"
"github.com/deluan/gosonic/tests"
. "github.com/smartystreets/goconvey/convey"
"strconv"
"testing"
)
func TestIndexRepository(t *testing.T) {
@@ -19,7 +19,7 @@ func TestIndexRepository(t *testing.T) {
i := &domain.ArtistIndex{Id: "123"}
repo.Put(i)
s,_ := repo.Get("123")
s, _ := repo.Get("123")
So(s, shouldBeEqual, i)
})
@@ -37,7 +37,7 @@ func TestIndexRepository(t *testing.T) {
}
Convey("When I call GetAll()", func() {
indices, err := repo.GetAll()
indices, err := repo.GetAll()
Convey("Then It should not return any error", func() {
So(err, ShouldBeNil)
})
@@ -55,4 +55,4 @@ func TestIndexRepository(t *testing.T) {
dropDb()
})
})
}
}