public
Rubygem
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 Mon May 19 13:48:53 -0700 2008 fix the gemspec so that github can build the gem [dan-manges]
file README.rdoc Mon Jun 30 21:06:15 -0700 2008 rename README to README.rdoc [dan-manges]
file Rakefile Mon Jun 30 21:06:15 -0700 2008 rename README to README.rdoc [dan-manges]
directory lib/ Sat May 31 12:11:55 -0700 2008 brief readme instructions, 0.1.0 [dan-manges]
directory test/ Thu May 29 11:49:02 -0700 2008 remember what controller should render regardle... [dan-manges]
file unit_controller.gemspec Mon Jun 30 21:06:15 -0700 2008 rename README to README.rdoc [dan-manges]
README.rdoc

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.[http://github.com/dan-manges/unit-controller] Changes are pushed to the Rubyforge git repository.

Contributors

  • Dan Manges
  • David Vollbracht

License

Released under Ruby’s license.[http://www.ruby-lang.org/en/LICENSE.txt]