UnitController

UnitController stubs view rendering to help with unit testing controller.

Loading UnitController:

gem "unit_controller"
require "unit_controller"

In the setup method for your test case:

def setup
  @controller = SampleController.new
  @request = ActionController::TestRequest.new
  @response = ActionController::TestResponse.new
  @controller.do_not_render_view
end

Development

Active development occurs on the GitHub. Changes are pushed to the Rubyforge git repository.

Contributors

  • Dan Manges

  • David Vollbracht

License

Released under Ruby’s license.