dashboard load/save work and began work on register

This commit is contained in:
Torkel Ödegaard
2014-08-22 15:32:42 +02:00
parent 07d8b542bf
commit c684b1ddab
9 changed files with 143 additions and 21 deletions
+18
View File
@@ -0,0 +1,18 @@
package models
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestDashboardModel(t *testing.T) {
Convey("When generating slug", t, func() {
dashboard := NewDashboard("Grafana Play Home")
dashboard.UpdateSlug()
So(dashboard.Slug, ShouldEqual, "grafana-play-home")
})
}