Skip to content

feature request: Add matcher for raise_not_authorized  #39

@jpgeek

Description

@jpgeek

One pattern for Pundit with closed systems is to throw a Pundit::NotAuthorizedError on initialize when the user is nil. It would be nice to test this using the lovely pundit-matchers type syntax:

 ` it { is_expected.to raise_not_authorized(:index) }`

I am happy to send a pr.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions