Closed masarakki closed 8 months ago
@masarakki Hi - I think we've either changed or removed the suggestion on how to achieve "multiple" error messages: if I recall correctly it turned out to be quite a problematic approach.
Could you please have a look through the current README and update the PR description accordingly.
When apply Multiple error messages per one policy action,
it { expect(subject).not_to permit(user, record) }
fails because it raise exception. I think this matcher concerns only permit or not, so it should catchPundit::NotAuthorizedError
, and convert true/false.