match_message ambiguity with custom error objects in RSpec request specs
RSpec's match_message matcher is frequently used to validate error output in request specs, particularly for authentication and authorization failures. When custom error objects are raised by controllers relying on Devise or CanCanCan, the matcher's string-comparison logic may produce inconsistent results depending on error-message formatting, localization,