RailsCasts
Ryan Bates
Add to My Podcasts
Episodes
About
Reviews
Promote
#276 Testing Time & Web Requests
8 minutes
Posted Jul 25, 2011 at 7:00 am.
0:00
8:57
Add to My Queue
Download
MP3
Share
episode
Share at current time
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.
Watch Video
Previous
#275 How I Test
Next
#277 Mountable Engines
← See all 346 episodes of RailsCasts