dan-manges / unit-controller
unit-controller
PublicUnitController assists with unit testing controllers by stubbing view rendering.
12 filesupdated Jun 18, 2026
files7Download
./libJun 16, 2026./testJun 16, 2026.gitignoreJun 16, 2026LICENSEJun 16, 2026RakefileJun 16, 2026README.markdownJun 18, 2026unit_controller.gemspecJun 16, 2026README
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
Contributors
- David Vollbracht
License
Released under the MIT license