Test class cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8037 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
b6b77c438a
commit
666830cca0
1 file changed
+2
-7
@@ -16,12 +16,10 @@
|
|||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
require File.expand_path('../../test_helper', __FILE__)
|
require File.expand_path('../../test_helper', __FILE__)
|
||||||
require 'repositories_controller'
|
|
||||||
|
|
||||||
# Re-raise errors caught by the controller.
|
|
||||||
class RepositoriesController; def rescue_action(e) raise e end; end
|
|
||||||
|
|
||||||
class RepositoriesSubversionControllerTest < ActionController::TestCase
|
class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||||
|
tests RepositoriesController
|
||||||
|
|
||||||
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
|
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
|
||||||
:repositories, :issues, :issue_statuses, :changesets, :changes,
|
:repositories, :issues, :issue_statuses, :changesets, :changes,
|
||||||
:issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
|
:issue_categories, :enumerations, :custom_fields, :custom_values, :trackers
|
||||||
@@ -30,9 +28,6 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
|||||||
NUM_REV = 11
|
NUM_REV = 11
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@controller = RepositoriesController.new
|
|
||||||
@request = ActionController::TestRequest.new
|
|
||||||
@response = ActionController::TestResponse.new
|
|
||||||
Setting.default_language = 'en'
|
Setting.default_language = 'en'
|
||||||
User.current = nil
|
User.current = nil
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user