instiki/vendor/rails/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb
2007-01-22 07:43:50 -06:00

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