DEV: Catch Mocha::ExpectationError in request specs (PR #14897)

Same issue as 28b00dc6fc4f9903c7bd0d4a84aabee1b4391e74, the Mocha::ExpectationError inherits from Exception instead of StandardError so RspecErrorTracker does not show the actual failed expectation in request specs, the status of the response is just 500 with no further detail.

GitHub

Actually can we just catch all Exceptions and StandardError?

@tgxworld you are not supposed to catch Exception because that is used for other things like Interrupt, see Rescue StandardError, Not Exception. The mocha and webmock libraries are doing the wrong thing by inheriting from Exception instead of StandardError for custom exceptions

Ahh icic. Might be a good idea to submit a PR to them at some point.