Commit ea43d47cf8e06ecb435ee59aa61280b0e398d8cc
1 parent
1c808e31
Exists in
master
and in
29 other branches
ActionItem117: renaming functional test files
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@913 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
5 changed files
with
41 additions
and
41 deletions
Show diff stats
| @@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
| 1 | +require File.dirname(__FILE__) + '/../test_helper' | ||
| 2 | +require 'environment_admin_controller' | ||
| 3 | + | ||
| 4 | +# Re-raise errors caught by the controller. | ||
| 5 | +class EnvironmentAdminController; def rescue_action(e) raise e end; end | ||
| 6 | + | ||
| 7 | +class EnvironmentAdminControllerTest < Test::Unit::TestCase | ||
| 8 | + def setup | ||
| 9 | + @controller = EnvironmentAdminController.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 |
test/functional/environment_admin_controller_test.rb
| @@ -1,18 +0,0 @@ | @@ -1,18 +0,0 @@ | ||
| 1 | -require File.dirname(__FILE__) + '/../test_helper' | ||
| 2 | -require 'environment_admin_controller' | ||
| 3 | - | ||
| 4 | -# Re-raise errors caught by the controller. | ||
| 5 | -class EnvironmentAdminController; def rescue_action(e) raise e end; end | ||
| 6 | - | ||
| 7 | -class EnvironmentAdminControllerTest < Test::Unit::TestCase | ||
| 8 | - def setup | ||
| 9 | - @controller = EnvironmentAdminController.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 |
test/functional/my_profile_controller_test.rb
| 1 | require File.dirname(__FILE__) + '/../test_helper' | 1 | require File.dirname(__FILE__) + '/../test_helper' |
| 2 | -require 'profile_admin_controller' | 2 | +require 'my_profile_controller' |
| 3 | 3 | ||
| 4 | # Re-raise errors caught by the controller. | 4 | # Re-raise errors caught by the controller. |
| 5 | -class ProfileAdminController; def rescue_action(e) raise e end; end | 5 | +class MyProfileController; def rescue_action(e) raise e end; end |
| 6 | 6 | ||
| 7 | -class OnlyForPersonTestController < ProfileAdminController | 7 | +class OnlyForPersonTestController < MyProfileController |
| 8 | requires_profile_class Person | 8 | requires_profile_class Person |
| 9 | def index | 9 | def index |
| 10 | render :text => '<div>something</div>' | 10 | render :text => '<div>something</div>' |
| 11 | end | 11 | end |
| 12 | end | 12 | end |
| 13 | 13 | ||
| 14 | -class ProfileAdminControllerTest < Test::Unit::TestCase | 14 | +class MyProfileControllerTest < Test::Unit::TestCase |
| 15 | 15 | ||
| 16 | all_fixtures | 16 | all_fixtures |
| 17 | def setup | 17 | def setup |
| 18 | - @controller = ProfileAdminController.new | 18 | + @controller = MyProfileController.new |
| 19 | @request = ActionController::TestRequest.new | 19 | @request = ActionController::TestRequest.new |
| 20 | @response = ActionController::TestResponse.new | 20 | @response = ActionController::TestResponse.new |
| 21 | end | 21 | end |
test/functional/system_admin_controller_test.rb
| @@ -1,18 +0,0 @@ | @@ -1,18 +0,0 @@ | ||
| 1 | -require File.dirname(__FILE__) + '/../test_helper' | ||
| 2 | -require 'system_admin_controller' | ||
| 3 | - | ||
| 4 | -# Re-raise errors caught by the controller. | ||
| 5 | -class SystemAdminController; def rescue_action(e) raise e end; end | ||
| 6 | - | ||
| 7 | -class SystemAdminControllerTest < Test::Unit::TestCase | ||
| 8 | - def setup | ||
| 9 | - @controller = SystemAdminController.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 |
| @@ -0,0 +1,18 @@ | @@ -0,0 +1,18 @@ | ||
| 1 | +require File.dirname(__FILE__) + '/../test_helper' | ||
| 2 | +require 'system_admin_controller' | ||
| 3 | + | ||
| 4 | +# Re-raise errors caught by the controller. | ||
| 5 | +class SystemAdminController; def rescue_action(e) raise e end; end | ||
| 6 | + | ||
| 7 | +class SystemAdminControllerTest < Test::Unit::TestCase | ||
| 8 | + def setup | ||
| 9 | + @controller = SystemAdminController.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 |