setting_test.go 369 B

12345678910111213141516171819202122
  1. package setting
  2. import (
  3. "path/filepath"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestLoadingSettings(t *testing.T) {
  8. WorkDir, _ = filepath.Abs("../../")
  9. Convey("Testing loading settings from ini file", t, func() {
  10. Convey("Given the default ini files", func() {
  11. NewConfigContext()
  12. So(AppName, ShouldEqual, "Grafana")
  13. })
  14. })
  15. }