Semaphore/db/ProjectUser_test.go

13 lines
240 B
Go
Raw Normal View History

2023-08-26 18:48:16 +02:00
package db
import (
"testing"
2024-11-23 12:19:19 +01:00
"github.com/stretchr/testify/assert"
2023-08-26 18:48:16 +02:00
)
func TestProjectUsers_RoleCan(t *testing.T) {
2024-11-23 12:19:19 +01:00
assert.True(t, ProjectManager.Can(CanManageProjectResources))
assert.False(t, ProjectManager.Can(CanUpdateProject))
2023-08-26 18:48:16 +02:00
}