You need to get the last hour data from an API but your test case runs too slow with the connections to API or test cases fail consistently with VCR due to different HTTP request sent in the params.
For example, expect(api.latest_data_time).eq 1.hour.ago
in which 1.hour.ago
will be different each time you execute the test case and the api http request param of the time will also change according to the current system time like http://api.com?starting_time=<new_current_time>
We need VCR to record the HTTP request and we use Timecop to freeze the system so that the HTTP request remains the same.