Began work on plugin system

This commit is contained in:
Torkel Ödegaard
2015-02-27 13:45:00 +01:00
parent 011fdf7ab6
commit 5bd5713a52
16 changed files with 222 additions and 89 deletions

View File

@ -0,0 +1,19 @@
package plugins
import (
"path/filepath"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestPluginScans(t *testing.T) {
Convey("When scaning for plugins", t, func() {
path, _ := filepath.Abs("../../src/app/plugins")
err := Scan(path)
So(err, ShouldBeNil)
So(len(List), ShouldEqual, 1)
})
}