RailsCasts
RailsCasts
Ryan Bates
#276 Testing Time & Web Requests
8 minutes Posted Jul 25, 2011 at 7:00 am.
0:00
8:57
Download MP3
Show notes
It can be difficult to test code that deals with the current time or an external web request. Here I show you how to do both using the Timecop and FakeWeb gems.