How to handle with remote services in tests
14-Apr-2020 1544
The main idea is to override implementation dynamically during the call of external service. In other words, to use different sources for receiving data for different environments. Suppose for production environments the data will be pulled from a third-party server, and for a test environment, the source can simply return an object of the desired format.
How to handle with remote services in tests #ruby #rubydeveloper #rubyonrails #handle #remote #services #tests #services #tests https://rubyonrails.ba/link/how-to-handle-with-remote-services-in-tests