An opinionated video overview about totally different check protection ranges in Ruby purposes
RSpec request specs can check endpoints that increase exceptions dealt with by Rails to return 4xx or 5xx responses. To check the returned response code, reasonably than the exception, you want further setup.
Calling third-party APIs is related to inherent complexity that’s not going to vanish. It must be tamed and confined to keep away from tight coupling between your app and an API service supplier.