dashboard_acl_test.go 347 B

123456789101112131415161718192021
  1. package models
  2. import (
  3. "testing"
  4. "fmt"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDashboardAclModel(t *testing.T) {
  8. Convey("When printing a PermissionType", t, func() {
  9. view := PERMISSION_VIEW
  10. printed := fmt.Sprint(view)
  11. Convey("Should output a friendly name", func() {
  12. So(printed, ShouldEqual, "View")
  13. })
  14. })
  15. }