mirror of https://github.com/grafana/grafana.git
				
				
				
			
		
			
				
	
	
		
			22 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			347 B
		
	
	
	
		
			Go
		
	
	
	
| package models
 | |
| 
 | |
| import (
 | |
| 	"testing"
 | |
| 
 | |
| 	"fmt"
 | |
| 
 | |
| 	. "github.com/smartystreets/goconvey/convey"
 | |
| )
 | |
| 
 | |
| func TestDashboardAclModel(t *testing.T) {
 | |
| 
 | |
| 	Convey("When printing a PermissionType", t, func() {
 | |
| 		view := PERMISSION_VIEW
 | |
| 		printed := fmt.Sprint(view)
 | |
| 
 | |
| 		Convey("Should output a friendly name", func() {
 | |
| 			So(printed, ShouldEqual, "View")
 | |
| 		})
 | |
| 	})
 | |
| }
 |