No commit activity in last 3 years
No release in over 3 years
A simple Rails plugin to delay responses or return specific response codes. (Needs a new name.)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme
== 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 <e.duran@fngtps.com>, released under the MIT license