mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-12 03:01:06 +01:00
13 lines
240 B
Go
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))
|
|
}
|