search for: newscontrollertest

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

2006 Feb 01
3
Testing components
...to duplicate my normal controller tests I have: require File.dirname(__FILE__) + ''/../test_helper'' require File.dirname(__FILE__) + ''news_controller'' # Re-raise errors caught by the controller. class NewsController; def rescue_action(e) raise e end; end class NewsControllerTest < Test::Unit::TestCase def setup @controller = NewsController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end # Replace this with your real tests. def test_content get :content assert_response :success asse...