Refactored logic from getMusicDirectory.view to the new engine layer.

This reveled a nasty bug in the DI code. Tests are broken
This commit is contained in:
Deluan
2016-03-08 08:48:47 -05:00
parent 46e7627fd3
commit e10e730af1
6 changed files with 200 additions and 123 deletions
+1
View File
@@ -35,6 +35,7 @@ func TestGetMusicDirectory(t *testing.T) {
})
Convey("Id is for an artist", func() {
Convey("Return fail on Artist Table error", func() {
mockArtistRepo.SetData(`[{"Id":"1","Name":"The Charlatans"}]`, 1)
mockArtistRepo.SetError(true)
_, w := Get(AddParams("/rest/getMusicDirectory.view", "id=1"), "TestGetMusicDirectory")