Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/branches/1-2-stable/railties/lib/rails_generator/generators/components/controller/templates/functional_test.rb

Revision 663, 0.5 kB (checked in by david, 4 years ago)

Fixed functional test path problems #662

Line 
1 require File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../test_helper'
2 require '<%= file_path %>_controller'
3
4 # Re-raise errors caught by the controller.
5 class <%= class_name %>Controller; def rescue_action(e) raise e end; end
6
7 class <%= class_name %>ControllerTest < Test::Unit::TestCase
8   def setup
9     @controller = <%= class_name %>Controller.new
10     @request    = ActionController::TestRequest.new
11     @response   = ActionController::TestResponse.new
12   end
13
14   # Replace this with your real tests.
15   def test_truth
16     assert true
17   end
18 end
Note: See TracBrowser for help on using the browser.