46 lines
910 B
Go
46 lines
910 B
Go
package keeper
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/regen-network/gocuke"
|
|
"gotest.tools/v3/assert"
|
|
)
|
|
|
|
func TestAuthorize(t *testing.T) {
|
|
t.Skip("TODO: uncomment this after implementing")
|
|
gocuke.NewRunner(t, &authorizeSuite{}).Path("../features/msg_authorize.feature").Run()
|
|
}
|
|
|
|
type authorizeSuite struct {
|
|
*baseFixture
|
|
}
|
|
|
|
func (s *authorizeSuite) Before(t *testing.T) {
|
|
s.baseFixture = initFixture(t)
|
|
}
|
|
|
|
func (s *authorizeSuite) HasPermission(a, b string) {
|
|
panic("PENDING")
|
|
}
|
|
|
|
func (s *authorizeSuite) HasNoPermissions(a string) {
|
|
panic("PENDING")
|
|
}
|
|
|
|
func (s *authorizeSuite) AttemptsToGrantThePermissions(a, b string, c gocuke.DocString) {
|
|
panic("PENDING")
|
|
}
|
|
|
|
func (s *authorizeSuite) ExpectSuccess() {
|
|
assert.NilError(s.t, s.err)
|
|
}
|
|
|
|
func (s *authorizeSuite) ExpectAnError(a string) {
|
|
assert.Error(s.t, s.err, a)
|
|
}
|
|
|
|
func (s *authorizeSuite) ExpectThatHasNoPermissions(a string) {
|
|
panic("PENDING")
|
|
}
|