added unit test for loading configuration file

This commit is contained in:
Torkel Ödegaard
2015-02-12 11:55:55 +01:00
parent 4df6668416
commit 2c16b0f0f3
3 changed files with 29 additions and 9 deletions

View File

@@ -0,0 +1,22 @@
package setting
import (
"path/filepath"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestLoadingSettings(t *testing.T) {
WorkDir, _ = filepath.Abs("../../")
Convey("Testing loading settings from ini file", t, func() {
Convey("Given the default ini files", func() {
NewConfigContext()
So(AppName, ShouldEqual, "Grafana")
})
})
}