1 require File.dirname(__FILE__) + '<%= '/..' * controller_class_name.split("::").length %>/test_helper'
2 require '<%= parent_folder_for_require %><%= controller_file_name %>_controller'
4 # Re-raise errors caught by the controller.
5 class <%= controller_class_name %>Controller; def rescue_action(e) raise e end; end
7 class <%= controller_class_name %>ControllerTest < Test::Unit::TestCase
12 @controller = <%= controller_class_name %>Controller.new
13 @request = ActionController::TestRequest.new
14 @response = ActionController::TestResponse.new
17 # TODO Replace this with your actual tests
20 assert_response :success
21 assert_equal 'image/png', @response.headers['Content-Type']