Basic DI (dependency injection) working! Yay!!

This commit is contained in:
Deluan
2016-03-01 09:38:43 -05:00
parent 4efb8ab031
commit 4df6c43be8
5 changed files with 68 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package api_test
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
"github.com/deluan/gosonic/tests"
)
func TestGetIndexes(t *testing.T) {
tests.Init(t, false)
_, w := Get(AddParams("/rest/getIndexes.view"), "TestGetIndexes")
Convey("Subject: GetIndexes Endpoint", t, func() {
Convey("Status code should be 200", func() {
So(w.Code, ShouldEqual, 200)
})
})
}