Open a page and assert that the account in the browser may, or may not, open it. Allowed: the browser stays on the page and it answers without an error. Not allowed: the app sends the browser elsewhere (the login form for a visitor, another page for an account without the group or the permission) or answers HTTP 401 or 403.
Examples
Then I should have access to "/admin"
Then I should not have access to "/admin"
And we should have access to "/settings"
Then I should not have access to "/settings"
But we should not have access to "/account"
Pattern
Then(/^(I |we )*should( not)* have access to "([^"]*)"$/, …)
Part of @webship-js/codeigniter-steps (github.com/webship/codeigniter-steps), a step pack for Webship-js 2.0.x.