# #276 Testing Time & Web Requests

> Episode of [RailsCasts](https://podistic.com/podcast/railscasts.md) · Published July 25, 2011 · Duration 8:57

- **Listen on Podistic:** https://podistic.com/episode/276-testing-time-web-requests
- **Video:** http://media.railscasts.com/assets/episodes/videos/276-testing-time-web-requests.mp4 (video/mp4)

## About this episode

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.
