public
Description: UnitController assists with unit testing controllers by stubbing view rendering.
Homepage: http://unit-controller.rubyforge.org
Clone URL: git://github.com/dan-manges/unit-controller.git
name age message
file .gitignore Loading commit data...
file LICENSE
file README.markdown Fri Oct 10 22:24:47 -0700 2008 add the rubyforge bug tracker link to the readme [dan-manges]
file Rakefile Mon Dec 01 14:01:13 -0800 2008 testing with rails 2.2.2 [dan-manges]
directory lib/ Sat May 31 12:11:55 -0700 2008 brief readme instructions, 0.1.0 [dan-manges]
directory test/ Fri Oct 24 09:37:42 -0700 2008 rails 2.2 compatibility - have some weirdness w... [dan-manges]
file unit_controller.gemspec Fri Oct 24 09:37:42 -0700 2008 rails 2.2 compatibility - have some weirdness w... [dan-manges]
README.markdown

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 also pushed to the Rubyforge git repository.

For bugs/patches/etc please use the Rubyforge tracker

Maintainer

Dan Manges

Contributors

  • David Vollbracht

License

Released under the MIT license