RailsCasts

#276 Testing Time & Web Requests

07.25.2011 - By Ryan BatesPlay

Download our free app to listen on your phone

Download on the App StoreGet it on Google Play

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.

More episodes from RailsCasts