search for: sidebarcontrollertest

Displaying 1 result from an estimated 1 matches for "sidebarcontrollertest".

2006 Jan 14
0
testing template components
...ugh the template section of "Agile Rails", specifically the stuff starting on P. 364. What is a good strategy for testing components? My initial thought is to mimic the Rails application "test" directory. No problem. Next copy the setup method, and set it up like so - class SidebarControllerTest < Test::Unit::TestCase def setup @controller = Navigation::Sidebar.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_setup assert true end end Nope, that throws an error that makes me think I am headed in...