summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-01 07:13:39 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-01 07:13:39 +0000
commit1481c721a222ccf05a43ae98d1cf7730314a13d5 (patch)
tree7ffacec036458fd198e7cbf6f5ae72d7cc7eca3e /test/functional
parent92bd67c279516f339866e95c702b39cee325ef05 (diff)
downloadredmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.tar.gz
redmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.zip
Use `require_relative` instead of `require File.expand_path(..., __FILE__)` (#38093).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/account_controller_test.rb2
-rw-r--r--test/functional/activities_controller_test.rb2
-rw-r--r--test/functional/admin_controller_test.rb2
-rw-r--r--test/functional/application_controller_test.rb2
-rw-r--r--test/functional/attachments_controller_test.rb2
-rw-r--r--test/functional/attachments_visibility_test.rb2
-rw-r--r--test/functional/auth_sources_controller_test.rb2
-rw-r--r--test/functional/auto_completes_controller_test.rb2
-rw-r--r--test/functional/boards_controller_test.rb2
-rw-r--r--test/functional/calendars_controller_test.rb2
-rw-r--r--test/functional/comments_controller_test.rb2
-rw-r--r--test/functional/context_menus_controller_test.rb2
-rw-r--r--test/functional/custom_field_enumerations_controller_test.rb2
-rw-r--r--test/functional/custom_fields_controller_test.rb2
-rw-r--r--test/functional/documents_controller_test.rb2
-rw-r--r--test/functional/email_addresses_controller_test.rb2
-rw-r--r--test/functional/enumerations_controller_test.rb2
-rw-r--r--test/functional/files_controller_test.rb2
-rw-r--r--test/functional/gantts_controller_test.rb2
-rw-r--r--test/functional/groups_controller_test.rb2
-rw-r--r--test/functional/imports_controller_test.rb2
-rw-r--r--test/functional/issue_categories_controller_test.rb2
-rw-r--r--test/functional/issue_relations_controller_test.rb2
-rw-r--r--test/functional/issue_statuses_controller_test.rb2
-rw-r--r--test/functional/issues_controller_test.rb2
-rw-r--r--test/functional/issues_controller_transaction_test.rb2
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/journals_controller_test.rb2
-rw-r--r--test/functional/mail_handler_controller_test.rb2
-rw-r--r--test/functional/members_controller_test.rb2
-rw-r--r--test/functional/messages_controller_test.rb2
-rw-r--r--test/functional/my_controller_test.rb2
-rw-r--r--test/functional/news_controller_test.rb2
-rw-r--r--test/functional/previews_controller_test.rb2
-rw-r--r--test/functional/principal_memberships_controller_test.rb2
-rw-r--r--test/functional/project_enumerations_controller_test.rb2
-rw-r--r--test/functional/projects_controller_test.rb2
-rw-r--r--test/functional/queries_controller_test.rb2
-rw-r--r--test/functional/reports_controller_test.rb2
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb2
-rw-r--r--test/functional/repositories_controller_test.rb2
-rw-r--r--test/functional/repositories_cvs_controller_test.rb2
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb2
-rw-r--r--test/functional/repositories_git_controller_test.rb2
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb2
-rw-r--r--test/functional/repositories_subversion_controller_test.rb2
-rw-r--r--test/functional/roles_controller_test.rb2
-rw-r--r--test/functional/search_controller_test.rb2
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/sessions_controller_test.rb2
-rw-r--r--test/functional/settings_controller_test.rb2
-rw-r--r--test/functional/sys_controller_test.rb2
-rw-r--r--test/functional/timelog_controller_test.rb2
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/timelog_report_test.rb2
-rw-r--r--test/functional/trackers_controller_test.rb2
-rw-r--r--test/functional/users_controller_test.rb2
-rw-r--r--test/functional/versions_controller_test.rb2
-rw-r--r--test/functional/versions_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/watchers_controller_test.rb2
-rw-r--r--test/functional/welcome_controller_test.rb2
-rw-r--r--test/functional/wiki_controller_test.rb2
-rw-r--r--test/functional/wikis_controller_test.rb2
-rw-r--r--test/functional/workflows_controller_test.rb2
64 files changed, 64 insertions, 64 deletions
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index 295435f4e..f539f4619 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AccountControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :roles
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 1d31ed1ff..fbbf9e601 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ActivitiesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb
index 76241c4cb..78631b309 100644
--- a/test/functional/admin_controller_test.rb
+++ b/test/functional/admin_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AdminControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles
diff --git a/test/functional/application_controller_test.rb b/test/functional/application_controller_test.rb
index 4f6cd93ad..1ac44e60e 100644
--- a/test/functional/application_controller_test.rb
+++ b/test/functional/application_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ApplicationControllerTest < Redmine::ControllerTest
def test_back_url_should_remove_utf8_checkmark_from_referer
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index 2cbaf830d..82d0b18ad 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AttachmentsControllerTest < Redmine::ControllerTest
fixtures :users, :user_preferences, :projects, :roles, :members, :member_roles,
diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb
index 57514ebb7..d64a6053e 100644
--- a/test/functional/attachments_visibility_test.rb
+++ b/test/functional/attachments_visibility_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AttachmentsVisibilityTest < Redmine::ControllerTest
tests AttachmentsController
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index 914cdf78d..606c33b86 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AuthSourcesControllerTest < Redmine::ControllerTest
fixtures :users, :auth_sources
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb
index e30436f3f..0240a391d 100644
--- a/test/functional/auto_completes_controller_test.rb
+++ b/test/functional/auto_completes_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class AutoCompletesControllerTest < Redmine::ControllerTest
fixtures :projects, :issues, :issue_statuses,
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index 132ddf8ff..57f1aff90 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class BoardsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index 98ee771bd..dc7698e9a 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class CalendarsControllerTest < Redmine::ControllerTest
fixtures :projects,
diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb
index ac37197cd..64a6f1209 100644
--- a/test/functional/comments_controller_test.rb
+++ b/test/functional/comments_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class CommentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news, :comments
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index e2d0baf3c..b604c2802 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ContextMenusControllerTest < Redmine::ControllerTest
fixtures :projects,
diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb
index 7427e11fe..034e49797 100644
--- a/test/functional/custom_field_enumerations_controller_test.rb
+++ b/test/functional/custom_field_enumerations_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class CustomFieldEnumerationsControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index ad686047f..8ab392b5a 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class CustomFieldsControllerTest < Redmine::ControllerTest
fixtures :custom_fields, :custom_values,
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb
index 5b480360f..099683640 100644
--- a/test/functional/documents_controller_test.rb
+++ b/test/functional/documents_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class DocumentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index 2cb503226..b01c8233e 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class EmailAddressesControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 076694e35..686de39cb 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class EnumerationsControllerTest < Redmine::ControllerTest
fixtures :enumerations, :issues, :users
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 070f1cc42..dcab66d9a 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class FilesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index ab4a2ff43..b3a68c483 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class GanttsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 556037888..1f4e6b35f 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class GroupsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index 9eb9c70ab..0297eca6e 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ImportsControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb
index c686ce6e6..49163ef6e 100644
--- a/test/functional/issue_categories_controller_test.rb
+++ b/test/functional/issue_categories_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class IssueCategoriesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories,
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index 342103029..7bb269ce9 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class IssueRelationsControllerTest < Redmine::ControllerTest
fixtures :projects,
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index 9e7f1b5f1..b6a3dfab0 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class IssueStatusesControllerTest < Redmine::ControllerTest
fixtures :issue_statuses, :issues, :users, :trackers, :workflows
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 7ff2e043d..5078dbf44 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class IssuesControllerTest < Redmine::ControllerTest
fixtures :projects,
diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb
index c45114ff2..b822ccbe1 100644
--- a/test/functional/issues_controller_transaction_test.rb
+++ b/test/functional/issues_controller_transaction_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
require 'issues_controller'
class IssuesControllerTransactionTest < Redmine::ControllerTest
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index bc9cd8a7c..46ca01100 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
tests IssuesController
diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb
index ac80cfcaf..8f4f27ee9 100644
--- a/test/functional/journals_controller_test.rb
+++ b/test/functional/journals_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class JournalsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles,
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb
index da696ce47..b8089f982 100644
--- a/test/functional/mail_handler_controller_test.rb
+++ b/test/functional/mail_handler_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class MailHandlerControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :projects, :enabled_modules,
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb
index de04fa18a..e28f50d2e 100644
--- a/test/functional/members_controller_test.rb
+++ b/test/functional/members_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class MembersControllerTest < Redmine::ControllerTest
fixtures :projects, :members, :member_roles, :roles, :users
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index b3d7ae796..2535e570b 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class MessagesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, :boards, :messages, :enabled_modules,
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index 65cb7f864..a48ae8b3d 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class MyControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :user_preferences,
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 0d62b8f19..ffa439073 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class NewsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index dd439e370..766442f4d 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class PreviewsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb
index 2dc3cfac8..95663b4f5 100644
--- a/test/functional/principal_memberships_controller_test.rb
+++ b/test/functional/principal_memberships_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class PrincipalMembershipsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb
index 62380dd68..523882863 100644
--- a/test/functional/project_enumerations_controller_test.rb
+++ b/test/functional/project_enumerations_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ProjectEnumerationsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 5c09a3296..a18850e66 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ProjectsControllerTest < Redmine::ControllerTest
fixtures :projects, :versions, :users, :email_addresses, :roles, :members,
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index a67b8be0d..0d15c4087 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class QueriesControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb
index e3ce50f01..c83fc6b37 100644
--- a/test/functional/reports_controller_test.rb
+++ b/test/functional/reports_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class ReportsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb
index cc0dc9be5..9b59c330e 100644
--- a/test/functional/repositories_bazaar_controller_test.rb
+++ b/test/functional/repositories_bazaar_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index 50da54324..17d9a50c4 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesControllerTest < Redmine::RepositoryControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb
index b81378c74..1bac8023a 100644
--- a/test/functional/repositories_cvs_controller_test.rb
+++ b/test/functional/repositories_cvs_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index 0ec4c819d..8866eeb12 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesFilesystemControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index fe7da0b8e..0ffd3134c 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index a2e5caa5c..afaff18a8 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesMercurialControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 3c748c32a..62b52a3b1 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb
index efcd05cde..d82771354 100644
--- a/test/functional/roles_controller_test.rb
+++ b/test/functional/roles_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class RolesControllerTest < Redmine::ControllerTest
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb
index 0b5bc9838..022ad29e9 100644
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class SearchControllerTest < Redmine::ControllerTest
fixtures :projects, :projects_trackers,
diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb
index b0b21620b..59c25d07c 100644
--- a/test/functional/search_custom_fields_visibility_test.rb
+++ b/test/functional/search_custom_fields_visibility_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
tests SearchController
diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb
index ccbea8301..f1ad6201f 100644
--- a/test/functional/sessions_controller_test.rb
+++ b/test/functional/sessions_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class SessionsControllerTest < Redmine::ControllerTest
include Redmine::I18n
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index b719cb13d..23f65bc00 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class SettingsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb
index dec852ef6..06d139dfc 100644
--- a/test/functional/sys_controller_test.rb
+++ b/test/functional/sys_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class SysControllerTest < Redmine::ControllerTest
fixtures :projects, :repositories, :enabled_modules
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 443237962..c0c923377 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class TimelogControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules, :roles, :members,
diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb
index cd21c1e42..84039aec3 100644
--- a/test/functional/timelog_custom_fields_visibility_test.rb
+++ b/test/functional/timelog_custom_fields_visibility_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
tests TimelogController
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb
index 670ad8e37..52f163028 100644
--- a/test/functional/timelog_report_test.rb
+++ b/test/functional/timelog_report_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class TimelogReportTest < Redmine::ControllerTest
tests TimelogController
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb
index f359c785b..24bd3bff3 100644
--- a/test/functional/trackers_controller_test.rb
+++ b/test/functional/trackers_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class TrackersControllerTest < Redmine::ControllerTest
fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index a46f53adc..ccb40ce4c 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class UsersControllerTest < Redmine::ControllerTest
include Redmine::I18n
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index d0403b9a8..b997a04a4 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class VersionsControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
diff --git a/test/functional/versions_custom_fields_visibility_test.rb b/test/functional/versions_custom_fields_visibility_test.rb
index d03cfca65..cc43e027a 100644
--- a/test/functional/versions_custom_fields_visibility_test.rb
+++ b/test/functional/versions_custom_fields_visibility_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class VersionsCustomFieldsVisibilityTest < Redmine::ControllerTest
tests VersionsController
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb
index 38d0039d7..239a0418c 100644
--- a/test/functional/watchers_controller_test.rb
+++ b/test/functional/watchers_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class WatchersControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb
index 650328e10..45cbc08ae 100644
--- a/test/functional/welcome_controller_test.rb
+++ b/test/functional/welcome_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class WelcomeControllerTest < Redmine::ControllerTest
fixtures :projects, :news, :users, :members, :roles, :member_roles, :enabled_modules
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index 28f36b37f..3765ac867 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class WikiControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 4d49372ba..9f3f9bffb 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class WikisControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index d130135d3..b368939d8 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class WorkflowsControllerTest < Redmine::ControllerTest
fixtures :roles, :trackers, :workflows, :users, :issue_statuses, :custom_fields