Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
== RequestStubber Allows you to stub a request by either delaying the request time, returning a specific response code, or a combination of both. Note that the RequestStubber module is only mixed-in in development mode. === Example Delays the process time of the request, by n seconds. class UsersController def index # ... end # Any request send to :index will be delayed 2 seconds. delay :index, 2 end Returns the specified response code. class UsersController def index # ... end # Any request send to :index will return a 404 response code. respond :index, 404 end Copyright (c) 2008 Fingertips, Eloy Duran <firstname.lastname@example.org>, released under the MIT license