19 lines
559 B
Ruby
19 lines
559 B
Ruby
|
require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
|
||
|
require '<%= file_path %>_controller'
|
||
|
|
||
|
# Re-raise errors caught by the controller.
|
||
|
class <%= class_name %>Controller; def rescue_action(e) raise e end; end
|
||
|
|
||
|
class <%= class_name %>ControllerTest < Test::Unit::TestCase
|
||
|
def setup
|
||
|
@controller = <%= class_name %>Controller.new
|
||
|
@request = ActionController::TestRequest.new
|
||
|
@response = ActionController::TestResponse.new
|
||
|
end
|
||
|
|
||
|
# Replace this with your real tests.
|
||
|
def test_truth
|
||
|
assert true
|
||
|
end
|
||
|
end
|