|
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 |
|
|---|
| 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 |
|
|---|
| 15 |
def test_truth |
|---|
| 16 |
assert true |
|---|
| 17 |
end |
|---|
| 18 |
end |
|---|