Semaphore/db/ProjectUser_test.go
2024-11-23 11:19:19 +00:00

13 lines
240 B
Go

package db
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestProjectUsers_RoleCan(t *testing.T) {
assert.True(t, ProjectManager.Can(CanManageProjectResources))
assert.False(t, ProjectManager.Can(CanUpdateProject))
}