diff --git a/extra/sample_plugin/test/integration/routing_test.rb b/extra/sample_plugin/test/integration/routing_test.rb index 50ad4603f..916fbd2c3 100644 --- a/extra/sample_plugin/test/integration/routing_test.rb +++ b/extra/sample_plugin/test/integration/routing_test.rb @@ -1,4 +1,4 @@ -require File.expand_path(File.dirname(__FILE__) + '../../../../../test/test_helper') +require_relative '../../../../test/test_helper' class SamplePluginRoutingTest < ActionDispatch::IntegrationTest def test_example diff --git a/lib/generators/redmine_plugin/templates/test_helper.rb.erb b/lib/generators/redmine_plugin/templates/test_helper.rb.erb index 54685d33c..55b016f6c 100644 --- a/lib/generators/redmine_plugin/templates/test_helper.rb.erb +++ b/lib/generators/redmine_plugin/templates/test_helper.rb.erb @@ -1,2 +1,2 @@ # Load the Redmine helper -require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper') +require_relative '../../../test/test_helper' diff --git a/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb b/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb index 0499b6970..89cd961ae 100644 --- a/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb +++ b/lib/generators/redmine_plugin_controller/templates/functional_test.rb.erb @@ -1,4 +1,4 @@ -require File.expand_path('../../test_helper', __FILE__) +require_relative '../test_helper' class <%= @controller_class %>ControllerTest < ActionController::TestCase # Replace this with your real tests. diff --git a/lib/generators/redmine_plugin_model/templates/unit_test.rb.erb b/lib/generators/redmine_plugin_model/templates/unit_test.rb.erb index ad15149fa..304516a35 100644 --- a/lib/generators/redmine_plugin_model/templates/unit_test.rb.erb +++ b/lib/generators/redmine_plugin_model/templates/unit_test.rb.erb @@ -1,4 +1,4 @@ -require File.expand_path('../../test_helper', __FILE__) +require_relative '../test_helper' class <%= @model_class %>Test < ActiveSupport::TestCase diff --git a/lib/redmine/wiki_formatting.rb b/lib/redmine/wiki_formatting.rb index 09fc4d3d7..67de5cb9a 100644 --- a/lib/redmine/wiki_formatting.rb +++ b/lib/redmine/wiki_formatting.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('../wiki_formatting/textile/redcloth3', __FILE__) +require_relative 'wiki_formatting/textile/redcloth3' require 'digest/md5' module Redmine diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb index d813f0ce3..3b96b8009 100644 --- a/test/application_system_test_case.rb +++ b/test/application_system_test_case.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 'webdrivers/chromedriver' class ApplicationSystemTestCase < ActionDispatch::SystemTestCase diff --git a/test/extra/redmine_pm/repository_git_test_pm.rb b/test/extra/redmine_pm/repository_git_test_pm.rb index 6cc405410..8ec1984de 100644 --- a/test/extra/redmine_pm/repository_git_test_pm.rb +++ b/test/extra/redmine_pm/repository_git_test_pm.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_case', __FILE__) +require_relative 'test_case' require 'tmpdir' class RedminePmTest::RepositoryGitTest < RedminePmTest::TestCase diff --git a/test/extra/redmine_pm/repository_subversion_test_pm.rb b/test/extra/redmine_pm/repository_subversion_test_pm.rb index 5b86dbcfd..f3d4b92a1 100644 --- a/test/extra/redmine_pm/repository_subversion_test_pm.rb +++ b/test/extra/redmine_pm/repository_subversion_test_pm.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_case', __FILE__) +require_relative 'test_case' require 'tmpdir' class RedminePmTest::RepositorySubversionTest < RedminePmTest::TestCase diff --git a/test/extra/redmine_pm/test_case.rb b/test/extra/redmine_pm/test_case.rb index 822805c56..b0967107f 100644 --- a/test/extra/redmine_pm/test_case.rb +++ b/test/extra/redmine_pm/test_case.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' module RedminePmTest class TestCase < ActiveSupport::TestCase diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb index 93a434e40..1bbdf10d3 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 fe112da48..5687ef8b0 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 d9b13bc5e..7a5e82552 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 4e822ab6d..9cbed978b 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 4839c612d..8af4bb798 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 ec1e01490..48bb4377d 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 a66d35140..6bfa655b3 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 33da211a5..65a1eb5f1 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 04398e4e3..78ead8195 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 267350dc0..45516c480 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 4ee8116f9..acd97dd60 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 7d83701c2..48f8a6b06 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 ef1c8f6ce..b102cc566 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 35d44c26f..557d524cf 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 43e5d1b24..82f02038a 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 17afe321f..b85f1620a 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 534875688..2c783b5e9 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 e3f2aba6a..f7c3e7957 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 df2ac3f13..ba954aec9 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 e335e9918..4100308bd 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 99e7fd4d9..83c48ff25 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 380a60e5e..3ea2cfe27 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 420d7e2d9..aa2f896cd 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 de529d582..3ac261208 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 58e51348a..ea543b4a5 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 8bc2bb6f6..56388feeb 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 419d742ba..bb5fc4c15 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 b1d1ffc6c..1f3e72c0a 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 92d25ff38..ffbfd24ab 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 a23cd7472..c1859bbe1 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 4aff6d238..a9e9e4cd9 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 a5ab1f69f..cf6abdbb0 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 00eb38d9f..29168b7fd 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 a3446a302..2c6fd4bd7 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 8db46872a..fe40ec81f 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 277ec89ef..0145ed5b5 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 12da256c4..deb92f9da 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 561cf212b..b44e178ea 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 e2bbe7123..300f91b6b 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 929df7b39..e1274cdda 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 e79ddda4f..d30e89ed4 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 fdd8e986d..78a75ce8b 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 a2a92a9c5..cd3a4b26e 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 09458f7f9..887b182f1 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 a31dd91a8..1d6cd0fc2 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 807c8d03f..2bab7c4f0 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 598452ee7..72b7f882d 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 8b004cbcf..db8f57c62 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 bcb4922ce..c3ffc5000 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 8640c1ee4..5519ca12a 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 e74a38e61..5a90deac5 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 5a6741fd8..9e477a1cd 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 d36279d13..d838a6b85 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 90cc9fe30..55d1abe08 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 d72491418..cd62e56df 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 0007e6c98..d75671709 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 52d604ee8..b83528acb 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 fdd767560..df53dc0f2 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 657135737..48d25cda7 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 ad5a64e89..af6e6e324 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 3c5b12511..8d504ef34 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 64d0a4e48..efbf81330 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 70a4e19fc..1f83927ab 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 05689090b..2b6a6c9f6 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 diff --git a/test/helpers/activities_helper_test.rb b/test/helpers/activities_helper_test.rb index c5f44bbef..6968acffc 100644 --- a/test/helpers/activities_helper_test.rb +++ b/test/helpers/activities_helper_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 ActivitiesHelperTest < Redmine::HelperTest include ActivitiesHelper diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index b4d194da9..c69ea9682 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_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 ApplicationHelperTest < Redmine::HelperTest include ERB::Util diff --git a/test/helpers/avatars_helper_test.rb b/test/helpers/avatars_helper_test.rb index ebb36f69c..1c2cf128d 100644 --- a/test/helpers/avatars_helper_test.rb +++ b/test/helpers/avatars_helper_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 AvatarsHelperTest < Redmine::HelperTest include ERB::Util diff --git a/test/helpers/custom_fields_helper_test.rb b/test/helpers/custom_fields_helper_test.rb index 0c5ad0666..7eb117812 100644 --- a/test/helpers/custom_fields_helper_test.rb +++ b/test/helpers/custom_fields_helper_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 CustomFieldsHelperTest < Redmine::HelperTest include ApplicationHelper diff --git a/test/helpers/groups_helper_test.rb b/test/helpers/groups_helper_test.rb index 92f14e1e4..2beb1cae0 100644 --- a/test/helpers/groups_helper_test.rb +++ b/test/helpers/groups_helper_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 GroupsHelperTest < Redmine::HelperTest include ERB::Util diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb index 6992001ac..5a136a6d6 100644 --- a/test/helpers/issues_helper_test.rb +++ b/test/helpers/issues_helper_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 IssuesHelperTest < Redmine::HelperTest include IssuesHelper diff --git a/test/helpers/journals_helper_test.rb b/test/helpers/journals_helper_test.rb index 23f3bc791..8dd3338eb 100644 --- a/test/helpers/journals_helper_test.rb +++ b/test/helpers/journals_helper_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 JournalsHelperTest < Redmine::HelperTest include JournalsHelper diff --git a/test/helpers/members_helper_test.rb b/test/helpers/members_helper_test.rb index f475fbd7c..53adbd1e1 100644 --- a/test/helpers/members_helper_test.rb +++ b/test/helpers/members_helper_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 MembersHelperTest < Redmine::HelperTest include ERB::Util diff --git a/test/helpers/projects_helper_test.rb b/test/helpers/projects_helper_test.rb index bfb3d3524..c541dfff6 100644 --- a/test/helpers/projects_helper_test.rb +++ b/test/helpers/projects_helper_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 ProjectsHelperTest < Redmine::HelperTest include ApplicationHelper diff --git a/test/helpers/projects_queries_helper_test.rb b/test/helpers/projects_queries_helper_test.rb index c5d7ae169..0e3723942 100644 --- a/test/helpers/projects_queries_helper_test.rb +++ b/test/helpers/projects_queries_helper_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 ProjectsQueriesHelperTest < Redmine::HelperTest include ProjectsQueriesHelper diff --git a/test/helpers/queries_helper_test.rb b/test/helpers/queries_helper_test.rb index d9ee912e5..98b926307 100644 --- a/test/helpers/queries_helper_test.rb +++ b/test/helpers/queries_helper_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 QueriesHelperTest < Redmine::HelperTest include QueriesHelper diff --git a/test/helpers/reports_helper_test.rb b/test/helpers/reports_helper_test.rb index fb128bd98..80aebf8f8 100644 --- a/test/helpers/reports_helper_test.rb +++ b/test/helpers/reports_helper_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 ReportsHlperTest < Redmine::HelperTest include ReportsHelper diff --git a/test/helpers/routes_helper_test.rb b/test/helpers/routes_helper_test.rb index 88ae59361..773e7c0c8 100644 --- a/test/helpers/routes_helper_test.rb +++ b/test/helpers/routes_helper_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 RoutesHelperTest < Redmine::HelperTest fixtures :projects, :issues diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb index f0bee97d0..845132b42 100644 --- a/test/helpers/search_helper_test.rb +++ b/test/helpers/search_helper_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 SearchHelperTest < Redmine::HelperTest include SearchHelper diff --git a/test/helpers/settings_helper_test.rb b/test/helpers/settings_helper_test.rb index 7503aa9f4..5e67da49e 100644 --- a/test/helpers/settings_helper_test.rb +++ b/test/helpers/settings_helper_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 SettingsHelperTest < Redmine::HelperTest include SettingsHelper diff --git a/test/helpers/sort_helper_test.rb b/test/helpers/sort_helper_test.rb index 163e48d6f..28e58debc 100644 --- a/test/helpers/sort_helper_test.rb +++ b/test/helpers/sort_helper_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 SortHelperTest < Redmine::HelperTest include SortHelper diff --git a/test/helpers/timelog_helper_test.rb b/test/helpers/timelog_helper_test.rb index 869f1a979..c7313ce05 100644 --- a/test/helpers/timelog_helper_test.rb +++ b/test/helpers/timelog_helper_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 TimelogHelperTest < Redmine::HelperTest include TimelogHelper diff --git a/test/helpers/version_helper_test.rb b/test/helpers/version_helper_test.rb index 40303f369..aafa4b971 100644 --- a/test/helpers/version_helper_test.rb +++ b/test/helpers/version_helper_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 VersionsHelperTest < Redmine::HelperTest include Rails.application.routes.url_helpers diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb index dcf4b7a89..234dd29a7 100644 --- a/test/helpers/watchers_helper_test.rb +++ b/test/helpers/watchers_helper_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 WatchersHelperTest < Redmine::HelperTest include WatchersHelper diff --git a/test/helpers/wiki_helper_test.rb b/test/helpers/wiki_helper_test.rb index 8ef0b419d..9cd1d329e 100644 --- a/test/helpers/wiki_helper_test.rb +++ b/test/helpers/wiki_helper_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 WikiHelperTest < Redmine::HelperTest include WikiHelper diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index ce64c3f21..d277179d6 100644 --- a/test/integration/account_test.rb +++ b/test/integration/account_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 AccountTest < Redmine::IntegrationTest fixtures :users, :email_addresses, :roles diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb index f5670444f..4254bf1ea 100644 --- a/test/integration/admin_test.rb +++ b/test/integration/admin_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 AdminTest < Redmine::IntegrationTest fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb index 1f2112a97..bc21e149c 100644 --- a/test/integration/api_test/api_routing_test.rb +++ b/test/integration/api_test/api_routing_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 Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb index b16a50471..cccaf0b1a 100644 --- a/test/integration/api_test/api_test.rb +++ b/test/integration/api_test/api_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 Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index b93b5bcd3..c27737198 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_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 Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb index 18838487c..cf5d9e778 100644 --- a/test/integration/api_test/authentication_test.rb +++ b/test/integration/api_test/authentication_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 Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base fixtures :users diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb index 9194fc4bb..3dc1168d0 100644 --- a/test/integration/api_test/custom_fields_attribute_test.rb +++ b/test/integration/api_test/custom_fields_attribute_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 Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base fixtures :users diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb index 30a5c6f7a..6c38ceb33 100644 --- a/test/integration/api_test/custom_fields_test.rb +++ b/test/integration/api_test/custom_fields_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 Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base fixtures :users, :custom_fields diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb index 28074ecd5..4390f6ae1 100644 --- a/test/integration/api_test/disabled_rest_api_test.rb +++ b/test/integration/api_test/disabled_rest_api_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 Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb index ce4503593..884bd3ee1 100644 --- a/test/integration/api_test/enumerations_test.rb +++ b/test/integration/api_test/enumerations_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 Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base fixtures :enumerations diff --git a/test/integration/api_test/files_test.rb b/test/integration/api_test/files_test.rb index 0d905bddf..84314d17a 100644 --- a/test/integration/api_test/files_test.rb +++ b/test/integration/api_test/files_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 Redmine::ApiTest::FilesTest < Redmine::ApiTest::Base fixtures :projects, diff --git a/test/integration/api_test/groups_test.rb b/test/integration/api_test/groups_test.rb index 1f098ff2b..f71ee6f0c 100644 --- a/test/integration/api_test/groups_test.rb +++ b/test/integration/api_test/groups_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 Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base fixtures :users, :groups_users, :email_addresses diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb index 7b48b736a..e18f21bc7 100644 --- a/test/integration/api_test/issue_categories_test.rb +++ b/test/integration/api_test/issue_categories_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 Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base fixtures :projects, :users, :issue_categories, :issues, diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb index bc2505f4b..77716959a 100644 --- a/test/integration/api_test/issue_relations_test.rb +++ b/test/integration/api_test/issue_relations_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 Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/issue_statuses_test.rb b/test/integration/api_test/issue_statuses_test.rb index b450bedfd..09fd416b5 100644 --- a/test/integration/api_test/issue_statuses_test.rb +++ b/test/integration/api_test/issue_statuses_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 Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base fixtures :issue_statuses diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb index 29b3390d2..3fd8bb540 100644 --- a/test/integration/api_test/issues_test.rb +++ b/test/integration/api_test/issues_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 Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base fixtures( diff --git a/test/integration/api_test/journals_test.rb b/test/integration/api_test/journals_test.rb index 66fc3b432..edd059830 100644 --- a/test/integration/api_test/journals_test.rb +++ b/test/integration/api_test/journals_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 Redmine::ApiTest::JournalTest < Redmine::ApiTest::Base fixtures :projects, :issues, :issue_statuses, :journals, :journal_details, diff --git a/test/integration/api_test/jsonp_test.rb b/test/integration/api_test/jsonp_test.rb index bc1ee0fe6..2179a8976 100644 --- a/test/integration/api_test/jsonp_test.rb +++ b/test/integration/api_test/jsonp_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 Redmine::ApiTest::JsonpTest < Redmine::ApiTest::Base fixtures :trackers diff --git a/test/integration/api_test/memberships_test.rb b/test/integration/api_test/memberships_test.rb index 9d3b333e1..538699a0a 100644 --- a/test/integration/api_test/memberships_test.rb +++ b/test/integration/api_test/memberships_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 Redmine::ApiTest::MembershipsTest < Redmine::ApiTest::Base fixtures :projects, :users, :roles, :members, :member_roles diff --git a/test/integration/api_test/my_test.rb b/test/integration/api_test/my_test.rb index 38eab5163..876eec40d 100644 --- a/test/integration/api_test/my_test.rb +++ b/test/integration/api_test/my_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 Redmine::ApiTest::MyTest < Redmine::ApiTest::Base fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects diff --git a/test/integration/api_test/news_test.rb b/test/integration/api_test/news_test.rb index d5c5946ad..c5731b280 100644 --- a/test/integration/api_test/news_test.rb +++ b/test/integration/api_test/news_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 Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb index e4047c523..8c2ccf4ac 100644 --- a/test/integration/api_test/projects_test.rb +++ b/test/integration/api_test/projects_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 Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base include ActiveJob::TestHelper diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb index 458bd9714..67a839874 100644 --- a/test/integration/api_test/queries_test.rb +++ b/test/integration/api_test/queries_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 Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/repositories_test.rb b/test/integration/api_test/repositories_test.rb index 3d847b5a3..053a886be 100644 --- a/test/integration/api_test/repositories_test.rb +++ b/test/integration/api_test/repositories_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 Redmine::ApiTest::RepositoriesTest < Redmine::ApiTest::Base fixtures :users, diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb index f66f9b796..4711d120c 100644 --- a/test/integration/api_test/roles_test.rb +++ b/test/integration/api_test/roles_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 Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base fixtures :roles diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb index f05832079..9a7ef2c99 100644 --- a/test/integration/api_test/search_test.rb +++ b/test/integration/api_test/search_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 Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base fixtures :projects, :projects_trackers, diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb index 8e62211e5..5b2185320 100644 --- a/test/integration/api_test/time_entries_test.rb +++ b/test/integration/api_test/time_entries_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 Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/trackers_test.rb b/test/integration/api_test/trackers_test.rb index 93fa0c3bf..e4d9d17bc 100644 --- a/test/integration/api_test/trackers_test.rb +++ b/test/integration/api_test/trackers_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 Redmine::ApiTest::TrackersTest < Redmine::ApiTest::Base fixtures :trackers diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb index 8444500d9..bbe23d9ba 100644 --- a/test/integration/api_test/users_test.rb +++ b/test/integration/api_test/users_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 Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb index b551a8ddf..bbb0120f6 100644 --- a/test/integration/api_test/versions_test.rb +++ b/test/integration/api_test/versions_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 Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb index 8caa75f7e..5e27cee9e 100644 --- a/test/integration/api_test/wiki_pages_test.rb +++ b/test/integration/api_test/wiki_pages_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 Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base fixtures :projects, :users, :roles, :members, :member_roles, diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb index a4e2808a1..e8e30250c 100644 --- a/test/integration/application_test.rb +++ b/test/integration/application_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 ApplicationTest < Redmine::IntegrationTest include Redmine::I18n diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb index ab07f3a31..e879e0954 100644 --- a/test/integration/attachments_test.rb +++ b/test/integration/attachments_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 AttachmentsTest < Redmine::IntegrationTest fixtures :projects, :enabled_modules, diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb index 30e77dd4e..85a78d79a 100644 --- a/test/integration/feeds_test.rb +++ b/test/integration/feeds_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 FeedsTest < Redmine::IntegrationTest fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb index ba55b46fb..502351b70 100644 --- a/test/integration/issues_test.rb +++ b/test/integration/issues_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 IssuesTest < Redmine::IntegrationTest fixtures :projects, diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb index d9fd376af..0594e59fc 100644 --- a/test/integration/layout_test.rb +++ b/test/integration/layout_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 LayoutTest < Redmine::IntegrationTest fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb index 54900d6b4..580cda8d2 100644 --- a/test/integration/lib/redmine/field_format/attachment_format_test.rb +++ b/test/integration/lib/redmine/field_format/attachment_format_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 AttachmentFieldFormatTest < Redmine::IntegrationTest fixtures :projects, diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb index e809ff4ed..698712fe7 100644 --- a/test/integration/lib/redmine/hook_test.rb +++ b/test/integration/lib/redmine/hook_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 HookTest < Redmine::IntegrationTest fixtures :users, :roles, :projects, :members, :member_roles diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb index c21d93c9f..ad92c7f1a 100644 --- a/test/integration/lib/redmine/menu_manager_test.rb +++ b/test/integration/lib/redmine/menu_manager_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 MenuManagerTest < Redmine::IntegrationTest include Redmine::I18n diff --git a/test/integration/lib/redmine/themes_test.rb b/test/integration/lib/redmine/themes_test.rb index 59aca7623..4c69eb7f7 100644 --- a/test/integration/lib/redmine/themes_test.rb +++ b/test/integration/lib/redmine/themes_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 ThemesTest < Redmine::IntegrationTest diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb index 2eaeb7f5a..b7ac7871c 100644 --- a/test/integration/projects_test.rb +++ b/test/integration/projects_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 ProjectsTest < Redmine::IntegrationTest fixtures :projects, :users, :members, :enabled_modules diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb index 86efcb19c..78c38bd70 100644 --- a/test/integration/repositories_git_test.rb +++ b/test/integration/repositories_git_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 RepositoriesGitTest < Redmine::IntegrationTest fixtures :projects, :users, :roles, :members, :member_roles, diff --git a/test/integration/routing/account_test.rb b/test/integration/routing/account_test.rb index 9e244d973..634d71c37 100644 --- a/test/integration/routing/account_test.rb +++ b/test/integration/routing/account_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 RoutingAccountTest < Redmine::RoutingTest def test_account diff --git a/test/integration/routing/activities_test.rb b/test/integration/routing/activities_test.rb index 296db8028..d256b1868 100644 --- a/test/integration/routing/activities_test.rb +++ b/test/integration/routing/activities_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 RoutingActivitiesTest < Redmine::RoutingTest diff --git a/test/integration/routing/admin_test.rb b/test/integration/routing/admin_test.rb index 4543cab22..e19136949 100644 --- a/test/integration/routing/admin_test.rb +++ b/test/integration/routing/admin_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 RoutingAdminTest < Redmine::RoutingTest def test_administration_panel diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb index 3978aa719..a5fbb40c9 100644 --- a/test/integration/routing/attachments_test.rb +++ b/test/integration/routing/attachments_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 RoutingAttachmentsTest < Redmine::RoutingTest def test_attachments diff --git a/test/integration/routing/auth_sources_test.rb b/test/integration/routing/auth_sources_test.rb index 4da485139..7443182a6 100644 --- a/test/integration/routing/auth_sources_test.rb +++ b/test/integration/routing/auth_sources_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 RoutingAuthSourcesTest < Redmine::RoutingTest def test_auth_sources diff --git a/test/integration/routing/auto_completes_test.rb b/test/integration/routing/auto_completes_test.rb index 02fb9955e..c953951de 100644 --- a/test/integration/routing/auto_completes_test.rb +++ b/test/integration/routing/auto_completes_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 RoutingAutoCompletesTest < Redmine::RoutingTest def test_auto_completes diff --git a/test/integration/routing/boards_test.rb b/test/integration/routing/boards_test.rb index 85cc85668..398ce3c04 100644 --- a/test/integration/routing/boards_test.rb +++ b/test/integration/routing/boards_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 RoutingBoardsTest < Redmine::RoutingTest def test_boards diff --git a/test/integration/routing/calendars_test.rb b/test/integration/routing/calendars_test.rb index da89c063c..ca1749b7b 100644 --- a/test/integration/routing/calendars_test.rb +++ b/test/integration/routing/calendars_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 RoutingCalendarsTest < Redmine::RoutingTest def test_calendars diff --git a/test/integration/routing/comments_test.rb b/test/integration/routing/comments_test.rb index 1759f349f..ba9044a53 100644 --- a/test/integration/routing/comments_test.rb +++ b/test/integration/routing/comments_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 RoutingCommentsTest < Redmine::RoutingTest def test_comments diff --git a/test/integration/routing/context_menus_test.rb b/test/integration/routing/context_menus_test.rb index 6dc386167..344d24f57 100644 --- a/test/integration/routing/context_menus_test.rb +++ b/test/integration/routing/context_menus_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 RoutingContextMenusTest < Redmine::RoutingTest def test_context_menus_time_entries diff --git a/test/integration/routing/custom_fields_test.rb b/test/integration/routing/custom_fields_test.rb index ffce8374a..3c5c26cb7 100644 --- a/test/integration/routing/custom_fields_test.rb +++ b/test/integration/routing/custom_fields_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 RoutingCustomFieldsTest < Redmine::RoutingTest def test_custom_fields diff --git a/test/integration/routing/documents_test.rb b/test/integration/routing/documents_test.rb index 8cbf844bf..6258c351f 100644 --- a/test/integration/routing/documents_test.rb +++ b/test/integration/routing/documents_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 RoutingDocumentsTest < Redmine::RoutingTest def test_documents_scoped_under_project diff --git a/test/integration/routing/enumerations_test.rb b/test/integration/routing/enumerations_test.rb index 84fdb9f61..072d6761e 100644 --- a/test/integration/routing/enumerations_test.rb +++ b/test/integration/routing/enumerations_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 RoutingEnumerationsTest < Redmine::RoutingTest def test_enumerations diff --git a/test/integration/routing/files_test.rb b/test/integration/routing/files_test.rb index 55c4c49fb..3b8825139 100644 --- a/test/integration/routing/files_test.rb +++ b/test/integration/routing/files_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 RoutingFilesTest < Redmine::RoutingTest def test_files diff --git a/test/integration/routing/gantts_test.rb b/test/integration/routing/gantts_test.rb index fe1add012..b19169116 100644 --- a/test/integration/routing/gantts_test.rb +++ b/test/integration/routing/gantts_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 RoutingGanttsTest < Redmine::RoutingTest def test_gantts diff --git a/test/integration/routing/groups_test.rb b/test/integration/routing/groups_test.rb index c78967bfd..d4f7c154f 100644 --- a/test/integration/routing/groups_test.rb +++ b/test/integration/routing/groups_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 RoutingGroupsTest < Redmine::RoutingTest def test_groups diff --git a/test/integration/routing/imports_test.rb b/test/integration/routing/imports_test.rb index 762c643c1..87da04f58 100644 --- a/test/integration/routing/imports_test.rb +++ b/test/integration/routing/imports_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 RoutingImportsTest < Redmine::RoutingTest def test_imports diff --git a/test/integration/routing/issue_categories_test.rb b/test/integration/routing/issue_categories_test.rb index 369ecc09d..81209b723 100644 --- a/test/integration/routing/issue_categories_test.rb +++ b/test/integration/routing/issue_categories_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 RoutingIssueCategoriesTest < Redmine::RoutingTest def test_issue_categories_scoped_under_project diff --git a/test/integration/routing/issue_relations_test.rb b/test/integration/routing/issue_relations_test.rb index d3cab7b46..ff293b91c 100644 --- a/test/integration/routing/issue_relations_test.rb +++ b/test/integration/routing/issue_relations_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 RoutingIssueRelationsTest < Redmine::RoutingTest def test_issue_relations diff --git a/test/integration/routing/issue_statuses_test.rb b/test/integration/routing/issue_statuses_test.rb index e5c4f5c41..1794eec21 100644 --- a/test/integration/routing/issue_statuses_test.rb +++ b/test/integration/routing/issue_statuses_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 RoutingIssueStatusesTest < Redmine::RoutingTest def test_issue_statuses diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb index 25807cbb7..780333137 100644 --- a/test/integration/routing/issues_test.rb +++ b/test/integration/routing/issues_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 RoutingIssuesTest < Redmine::RoutingTest def test_issues diff --git a/test/integration/routing/journals_test.rb b/test/integration/routing/journals_test.rb index b54e26ec4..3cb6573e9 100644 --- a/test/integration/routing/journals_test.rb +++ b/test/integration/routing/journals_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 RoutingJournalsTest < Redmine::RoutingTest def test_journals diff --git a/test/integration/routing/mail_handler_test.rb b/test/integration/routing/mail_handler_test.rb index 902d105c1..10bbda151 100644 --- a/test/integration/routing/mail_handler_test.rb +++ b/test/integration/routing/mail_handler_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 RoutingMailHandlerTest < Redmine::RoutingTest def test_mail_handler diff --git a/test/integration/routing/members_test.rb b/test/integration/routing/members_test.rb index 4c034e00a..80e78a90d 100644 --- a/test/integration/routing/members_test.rb +++ b/test/integration/routing/members_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 RoutingMembersTest < Redmine::RoutingTest def test_members diff --git a/test/integration/routing/messages_test.rb b/test/integration/routing/messages_test.rb index 259ab9bbf..4ac15fdd9 100644 --- a/test/integration/routing/messages_test.rb +++ b/test/integration/routing/messages_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 RoutingMessagesTest < Redmine::RoutingTest def test_messages diff --git a/test/integration/routing/my_test.rb b/test/integration/routing/my_test.rb index bf6dfa4ae..bf053672a 100644 --- a/test/integration/routing/my_test.rb +++ b/test/integration/routing/my_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 RoutingMyTest < Redmine::RoutingTest def test_my diff --git a/test/integration/routing/news_test.rb b/test/integration/routing/news_test.rb index 0c56f6e33..2a9b7f5b1 100644 --- a/test/integration/routing/news_test.rb +++ b/test/integration/routing/news_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 RoutingNewsTest < Redmine::RoutingTest def test_news_scoped_under_project diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb index 8ccbd97a0..3617925a2 100644 --- a/test/integration/routing/previews_test.rb +++ b/test/integration/routing/previews_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 RoutingPreviewsTest < Redmine::RoutingTest def test_previews diff --git a/test/integration/routing/principal_memberships_test.rb b/test/integration/routing/principal_memberships_test.rb index 3b3a69174..e763260ec 100644 --- a/test/integration/routing/principal_memberships_test.rb +++ b/test/integration/routing/principal_memberships_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 RoutingPrincipalMembershipsTest < Redmine::RoutingTest def test_user_memberships diff --git a/test/integration/routing/project_enumerations_test.rb b/test/integration/routing/project_enumerations_test.rb index 240d5aac6..68deba57b 100644 --- a/test/integration/routing/project_enumerations_test.rb +++ b/test/integration/routing/project_enumerations_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 RoutingProjectEnumerationsTest < Redmine::RoutingTest def test_project_enumerations diff --git a/test/integration/routing/projects_test.rb b/test/integration/routing/projects_test.rb index 855da3190..aebac8b96 100644 --- a/test/integration/routing/projects_test.rb +++ b/test/integration/routing/projects_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 RoutingProjectsTest < Redmine::RoutingTest def test_projects diff --git a/test/integration/routing/queries_test.rb b/test/integration/routing/queries_test.rb index fcd36938b..dc66dd616 100644 --- a/test/integration/routing/queries_test.rb +++ b/test/integration/routing/queries_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 RoutingQueriesTest < Redmine::RoutingTest def test_queries diff --git a/test/integration/routing/reports_test.rb b/test/integration/routing/reports_test.rb index 4595fb7e3..edb7ed90b 100644 --- a/test/integration/routing/reports_test.rb +++ b/test/integration/routing/reports_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 RoutingReportsTest < Redmine::RoutingTest def test_reports diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb index d871ca855..897fbc18f 100644 --- a/test/integration/routing/repositories_test.rb +++ b/test/integration/routing/repositories_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 RoutingRepositoriesTest < Redmine::RoutingTest diff --git a/test/integration/routing/roles_test.rb b/test/integration/routing/roles_test.rb index 79defc52d..16975312a 100644 --- a/test/integration/routing/roles_test.rb +++ b/test/integration/routing/roles_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 RoutingRolesTest < Redmine::RoutingTest def test_roles diff --git a/test/integration/routing/search_test.rb b/test/integration/routing/search_test.rb index 42395d320..6f763acec 100644 --- a/test/integration/routing/search_test.rb +++ b/test/integration/routing/search_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 RoutingSearchTest < Redmine::RoutingTest def test_search diff --git a/test/integration/routing/settings_test.rb b/test/integration/routing/settings_test.rb index 5d37a87c8..c5279f7f9 100644 --- a/test/integration/routing/settings_test.rb +++ b/test/integration/routing/settings_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 RoutingSettingsTest < Redmine::RoutingTest def test_settings diff --git a/test/integration/routing/sys_test.rb b/test/integration/routing/sys_test.rb index d5b122524..318183fb0 100644 --- a/test/integration/routing/sys_test.rb +++ b/test/integration/routing/sys_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 RoutingSysTest < Redmine::RoutingTest def test_sys diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb index ed94304ac..054ae87c7 100644 --- a/test/integration/routing/timelog_test.rb +++ b/test/integration/routing/timelog_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 RoutingTimelogsTest < Redmine::RoutingTest def test_timelogs_global diff --git a/test/integration/routing/trackers_test.rb b/test/integration/routing/trackers_test.rb index 1abe1f1f6..7f431a94d 100644 --- a/test/integration/routing/trackers_test.rb +++ b/test/integration/routing/trackers_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 RoutingTrackersTest < Redmine::RoutingTest def test_trackers diff --git a/test/integration/routing/users_test.rb b/test/integration/routing/users_test.rb index 88d827088..92358a8a9 100644 --- a/test/integration/routing/users_test.rb +++ b/test/integration/routing/users_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 RoutingUsersTest < Redmine::RoutingTest def test_users diff --git a/test/integration/routing/versions_test.rb b/test/integration/routing/versions_test.rb index 8aab761fc..77fee1278 100644 --- a/test/integration/routing/versions_test.rb +++ b/test/integration/routing/versions_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 RoutingVersionsTest < Redmine::RoutingTest def test_project_versions diff --git a/test/integration/routing/watchers_test.rb b/test/integration/routing/watchers_test.rb index 13cd1a5d9..397dc918a 100644 --- a/test/integration/routing/watchers_test.rb +++ b/test/integration/routing/watchers_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 RoutingWatchersTest < Redmine::RoutingTest def test_watchers diff --git a/test/integration/routing/welcome_test.rb b/test/integration/routing/welcome_test.rb index 00c6cbe33..b474bcb8b 100644 --- a/test/integration/routing/welcome_test.rb +++ b/test/integration/routing/welcome_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 RoutingWelcomeTest < Redmine::RoutingTest def test_welcome diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb index 3be9f9b08..ce4a60bb9 100644 --- a/test/integration/routing/wiki_test.rb +++ b/test/integration/routing/wiki_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 RoutingWikiTest < Redmine::RoutingTest def test_wiki diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb index 46e42543e..890124b49 100644 --- a/test/integration/routing/wikis_test.rb +++ b/test/integration/routing/wikis_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 RoutingWikisTest < Redmine::RoutingTest def test_wikis diff --git a/test/integration/routing/workflows_test.rb b/test/integration/routing/workflows_test.rb index c6320fb18..4a7e589ae 100644 --- a/test/integration/routing/workflows_test.rb +++ b/test/integration/routing/workflows_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 RoutingWorkflowsTest < Redmine::RoutingTest def test_workflows diff --git a/test/integration/sessions_test.rb b/test/integration/sessions_test.rb index 93b8988c5..0f207da3b 100644 --- a/test/integration/sessions_test.rb +++ b/test/integration/sessions_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 SessionsTest < Redmine::IntegrationTest fixtures :users, :email_addresses, :roles diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb index abc66b3b3..07a4d9e9e 100644 --- a/test/integration/sudo_mode_test.rb +++ b/test/integration/sudo_mode_test.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require File.expand_path('../../test_helper', __FILE__) +require_relative '../test_helper' class SudoModeTest < Redmine::IntegrationTest fixtures :projects, :members, :member_roles, :roles, :users, :email_addresses diff --git a/test/integration/twofa_test.rb b/test/integration/twofa_test.rb index dd94c83a1..f432b8529 100644 --- a/test/integration/twofa_test.rb +++ b/test/integration/twofa_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 TwofaTest < Redmine::IntegrationTest fixtures :projects, :users, :email_addresses diff --git a/test/integration/users_test.rb b/test/integration/users_test.rb index 89aae30a6..7343a3117 100644 --- a/test/integration/users_test.rb +++ b/test/integration/users_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 UsersTest < Redmine::IntegrationTest fixtures :users, :email_addresses diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb index 5be4e151d..7abafa9b9 100644 --- a/test/integration/welcome_test.rb +++ b/test/integration/welcome_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 WelcomeTest < Redmine::IntegrationTest fixtures :users, :email_addresses, diff --git a/test/integration/wiki_test.rb b/test/integration/wiki_test.rb index 330696180..2501f4964 100644 --- a/test/integration/wiki_test.rb +++ b/test/integration/wiki_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 WikiIntegrationTest < Redmine::IntegrationTest fixtures :projects, diff --git a/test/system/custom_field_enumerations_test.rb b/test/system/custom_field_enumerations_test.rb index 4235b9ed3..6c4d66adb 100644 --- a/test/system/custom_field_enumerations_test.rb +++ b/test/system/custom_field_enumerations_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class CustomFieldEnumerationsTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb index 39fbaa2ed..9d819f72f 100644 --- a/test/system/inline_autocomplete_test.rb +++ b/test/system/inline_autocomplete_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class InlineAutocompleteSystemTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb index 5cc9d9cfb..7765e2088 100644 --- a/test/system/issues_import_test.rb +++ b/test/system/issues_import_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class IssuesImportTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb index 6e34ce62c..ee877edcd 100644 --- a/test/system/issues_test.rb +++ b/test/system/issues_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class IssuesSystemTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/keyboard_shortcuts_test.rb b/test/system/keyboard_shortcuts_test.rb index 0e79d5650..1e8492a54 100644 --- a/test/system/keyboard_shortcuts_test.rb +++ b/test/system/keyboard_shortcuts_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class InlineAutocompleteSystemTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/my_page_test.rb b/test/system/my_page_test.rb index 7b0b61239..3a7568bff 100644 --- a/test/system/my_page_test.rb +++ b/test/system/my_page_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class MyPageTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb index 4f38328ff..62c56e99a 100644 --- a/test/system/quick_jump_test.rb +++ b/test/system/quick_jump_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class QuickJumpTest < ApplicationSystemTestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, diff --git a/test/system/sudo_mode_test.rb b/test/system/sudo_mode_test.rb index ba8c16857..95124ab65 100644 --- a/test/system/sudo_mode_test.rb +++ b/test/system/sudo_mode_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' class SudoModeSystemTest < ApplicationSystemTestCase fixtures :users, :email_addresses diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb index 1761d10dc..9acbd7118 100644 --- a/test/system/timelog_test.rb +++ b/test/system/timelog_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('../../application_system_test_case', __FILE__) +require_relative '../application_system_test_case' Capybara.default_max_wait_time = 2 diff --git a/test/test_helper.rb b/test/test_helper.rb index 68683e387..fddef57de 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -19,7 +19,7 @@ if ENV["COVERAGE"] require 'simplecov' - require File.expand_path(File.dirname(__FILE__) + "/coverage/html_formatter") + require_relative 'coverage/html_formatter' SimpleCov.formatter = Redmine::Coverage::HtmlFormatter SimpleCov.start 'rails' end @@ -27,10 +27,10 @@ end $redmine_test_ldap_server = ENV['REDMINE_TEST_LDAP_SERVER'] || '127.0.0.1' ENV["RAILS_ENV"] = "test" -require File.expand_path(File.dirname(__FILE__) + "/../config/environment") +require_relative '../config/environment' require 'rails/test_help' -require File.expand_path(File.dirname(__FILE__) + '/object_helpers') +require_relative 'object_helpers' include ObjectHelpers require 'net/ldap' diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb index cf20a4e69..374aa89fa 100644 --- a/test/unit/activity_test.rb +++ b/test/unit/activity_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 ActivityTest < ActiveSupport::TestCase fixtures :projects, :versions, :attachments, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details, diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index f721d4662..58d985b02 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_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 AttachmentTest < ActiveSupport::TestCase fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, diff --git a/test/unit/attachment_transaction_test.rb b/test/unit/attachment_transaction_test.rb index 3751c3ecc..7ec09a0c0 100644 --- a/test/unit/attachment_transaction_test.rb +++ b/test/unit/attachment_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' class AttachmentTest < ActiveSupport::TestCase fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles, diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb index d56006f2f..d1be52c65 100644 --- a/test/unit/auth_source_ldap_test.rb +++ b/test/unit/auth_source_ldap_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 AuthSourceLdapTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/board_test.rb b/test/unit/board_test.rb index 9ef31490f..d99938962 100644 --- a/test/unit/board_test.rb +++ b/test/unit/board_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 BoardTest < ActiveSupport::TestCase fixtures :projects, :boards, :messages, :attachments, :watchers diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index dcb775192..dfd3c133b 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_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 ChangesetTest < ActiveSupport::TestCase fixtures :projects, :repositories, diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index c8bf08e6b..d8e2ea9c9 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_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 CommentTest < ActiveSupport::TestCase fixtures :users, :email_addresses, :news, :comments, :projects, :enabled_modules, diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb index dd6e754eb..1b149619b 100644 --- a/test/unit/custom_field_test.rb +++ b/test/unit/custom_field_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 CustomFieldTest < ActiveSupport::TestCase fixtures :custom_fields, :roles, :projects, diff --git a/test/unit/custom_field_user_format_test.rb b/test/unit/custom_field_user_format_test.rb index 25a8a30b0..b5e2d9495 100644 --- a/test/unit/custom_field_user_format_test.rb +++ b/test/unit/custom_field_user_format_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 CustomFieldUserFormatTest < ActiveSupport::TestCase fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues diff --git a/test/unit/custom_field_version_format_test.rb b/test/unit/custom_field_version_format_test.rb index 380c0ab62..52807357b 100644 --- a/test/unit/custom_field_version_format_test.rb +++ b/test/unit/custom_field_version_format_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 CustomFieldVersionFormatTest < ActiveSupport::TestCase fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues, :versions diff --git a/test/unit/custom_value_test.rb b/test/unit/custom_value_test.rb index d5923bf7b..a32d9fa1f 100644 --- a/test/unit/custom_value_test.rb +++ b/test/unit/custom_value_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 CustomValueTest < ActiveSupport::TestCase fixtures :custom_fields, :custom_values, :users diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb index aa8aff550..9747c1fb2 100644 --- a/test/unit/default_data_test.rb +++ b/test/unit/default_data_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 DefaultDataTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb index ee9e8afc2..bd263c47c 100644 --- a/test/unit/document_category_test.rb +++ b/test/unit/document_category_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 DocumentCategoryTest < ActiveSupport::TestCase fixtures :enumerations, :documents, :issues diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb index e2a88c85e..f82d87af9 100644 --- a/test/unit/document_test.rb +++ b/test/unit/document_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 DocumentTest < ActiveSupport::TestCase fixtures :projects, :enumerations, :documents, :attachments, diff --git a/test/unit/email_address_test.rb b/test/unit/email_address_test.rb index 8b5c0ed51..75001cd0d 100644 --- a/test/unit/email_address_test.rb +++ b/test/unit/email_address_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 EmailAddressTest < ActiveSupport::TestCase fixtures :users diff --git a/test/unit/enabled_module_test.rb b/test/unit/enabled_module_test.rb index 0315e9ce0..af9df2994 100644 --- a/test/unit/enabled_module_test.rb +++ b/test/unit/enabled_module_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 EnabledModuleTest < ActiveSupport::TestCase fixtures :projects, :trackers, :issue_statuses, :wikis diff --git a/test/unit/enumeration_test.rb b/test/unit/enumeration_test.rb index 98b1da7f4..6585ae987 100644 --- a/test/unit/enumeration_test.rb +++ b/test/unit/enumeration_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 EnumerationTest < ActiveSupport::TestCase fixtures :enumerations, :issues, :custom_fields, :custom_values diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb index d93187460..1f15c8b31 100644 --- a/test/unit/group_test.rb +++ b/test/unit/group_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 GroupTest < ActiveSupport::TestCase fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/unit/initializers/patches_test.rb b/test/unit/initializers/patches_test.rb index a414e4ded..b42c5d5cb 100644 --- a/test/unit/initializers/patches_test.rb +++ b/test/unit/initializers/patches_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 PatchesTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/issue_category_test.rb b/test/unit/issue_category_test.rb index ef97f51e1..208b5dfcf 100644 --- a/test/unit/issue_category_test.rb +++ b/test/unit/issue_category_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 IssueCategoryTest < ActiveSupport::TestCase fixtures :issue_categories, :issues, :users, :groups_users diff --git a/test/unit/issue_custom_field_test.rb b/test/unit/issue_custom_field_test.rb index 392e77a82..4755883c7 100644 --- a/test/unit/issue_custom_field_test.rb +++ b/test/unit/issue_custom_field_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 IssueCustomFieldTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb index bb0fa96ec..37f312b74 100644 --- a/test/unit/issue_import_test.rb +++ b/test/unit/issue_import_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 IssueImportTest < ActiveSupport::TestCase fixtures :projects, :enabled_modules, diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb index b6cb57c3e..d88ff4fea 100644 --- a/test/unit/issue_nested_set_concurrency_test.rb +++ b/test/unit/issue_nested_set_concurrency_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 IssueNestedSetConcurrencyTest < ActiveSupport::TestCase fixtures :projects, :users, diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index ea877c948..d56d420c9 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_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 IssueNestedSetTest < ActiveSupport::TestCase fixtures :projects, :users, :roles, diff --git a/test/unit/issue_priority_test.rb b/test/unit/issue_priority_test.rb index 1ea5862db..e918b5520 100644 --- a/test/unit/issue_priority_test.rb +++ b/test/unit/issue_priority_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 IssuePriorityTest < ActiveSupport::TestCase fixtures :enumerations, :issues diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb index c93ab3ff1..fc639ab5b 100644 --- a/test/unit/issue_relation_test.rb +++ b/test/unit/issue_relation_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 IssueRelationTest < ActiveSupport::TestCase fixtures :projects, diff --git a/test/unit/issue_scopes_test.rb b/test/unit/issue_scopes_test.rb index 69f8cb680..b2b2fa6c6 100644 --- a/test/unit/issue_scopes_test.rb +++ b/test/unit/issue_scopes_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 IssueScopesTest < ActiveSupport::TestCase fixtures :projects, :users, :members, :member_roles, :roles, diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index 00e0a0f42..31cfd15f8 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_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 IssueStatusTest < ActiveSupport::TestCase fixtures :projects, :users, :members, :member_roles, :roles, diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb index 0710190fd..fc11035d2 100644 --- a/test/unit/issue_subtasking_test.rb +++ b/test/unit/issue_subtasking_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 IssueSubtaskingTest < ActiveSupport::TestCase fixtures :projects, :users, :roles, :members, :member_roles, diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index b056ffb18..f39dae672 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_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 IssueTest < ActiveSupport::TestCase fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, diff --git a/test/unit/issue_transaction_test.rb b/test/unit/issue_transaction_test.rb index b32fbebb4..4d0cfc66c 100644 --- a/test/unit/issue_transaction_test.rb +++ b/test/unit/issue_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' class IssueTransactionTest < ActiveSupport::TestCase fixtures :projects, :users, :members, :member_roles, :roles, diff --git a/test/unit/jobs/destroy_project_job_test.rb b/test/unit/jobs/destroy_project_job_test.rb index 25219db31..37915d49a 100644 --- a/test/unit/jobs/destroy_project_job_test.rb +++ b/test/unit/jobs/destroy_project_job_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 DestroyProjectJobTest < ActiveJob::TestCase fixtures :users, :projects, :email_addresses diff --git a/test/unit/jobs/destroy_projects_job_test.rb b/test/unit/jobs/destroy_projects_job_test.rb index e764a5328..8c430278a 100644 --- a/test/unit/jobs/destroy_projects_job_test.rb +++ b/test/unit/jobs/destroy_projects_job_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 DestroyProjectsJobTest < ActiveJob::TestCase fixtures :users, :projects, :email_addresses diff --git a/test/unit/journal_observer_test.rb b/test/unit/journal_observer_test.rb index 9b66c5502..708232699 100644 --- a/test/unit/journal_observer_test.rb +++ b/test/unit/journal_observer_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 JournalObserverTest < ActiveSupport::TestCase fixtures :issues, :issue_statuses, :journals, :journal_details, :projects, diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb index cf86a7990..574f2075b 100644 --- a/test/unit/journal_test.rb +++ b/test/unit/journal_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 JournalTest < ActiveSupport::TestCase fixtures :projects, :issues, :issue_statuses, :journals, :journal_details, diff --git a/test/unit/lib/redmine/access_control_test.rb b/test/unit/lib/redmine/access_control_test.rb index b4236baf3..c69fe21db 100644 --- a/test/unit/lib/redmine/access_control_test.rb +++ b/test/unit/lib/redmine/access_control_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 Redmine::AccessControlTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/acts/mentionable_test.rb b/test/unit/lib/redmine/acts/mentionable_test.rb index 0ea6ecfae..c0964d8a8 100644 --- a/test/unit/lib/redmine/acts/mentionable_test.rb +++ b/test/unit/lib/redmine/acts/mentionable_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 Redmine::Acts::MentionableTest < ActiveSupport::TestCase fixtures :projects, :users, :email_addresses, :members, :member_roles, :roles, diff --git a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb index 83e3bc119..e4d1c2e4f 100644 --- a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb +++ b/test/unit/lib/redmine/acts/positioned_with_scope_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 Redmine::Acts::PositionedWithScopeTest < ActiveSupport::TestCase fixtures :projects, :boards diff --git a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb index b074ca6ae..751e6b1a8 100644 --- a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb +++ b/test/unit/lib/redmine/acts/positioned_without_scope_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 Redmine::Acts::PositionedWithoutScopeTest < ActiveSupport::TestCase fixtures :trackers, :issue_statuses diff --git a/test/unit/lib/redmine/ciphering_test.rb b/test/unit/lib/redmine/ciphering_test.rb index 895bc69a7..f3ea34497 100644 --- a/test/unit/lib/redmine/ciphering_test.rb +++ b/test/unit/lib/redmine/ciphering_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 Redmine::CipheringTest < ActiveSupport::TestCase fixtures :auth_sources diff --git a/test/unit/lib/redmine/codeset_util_test.rb b/test/unit/lib/redmine/codeset_util_test.rb index 56094ecfa..c809091ea 100644 --- a/test/unit/lib/redmine/codeset_util_test.rb +++ b/test/unit/lib/redmine/codeset_util_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 Redmine::CodesetUtilTest < ActiveSupport::TestCase def test_to_utf8_by_setting_from_latin1 diff --git a/test/unit/lib/redmine/configuration_test.rb b/test/unit/lib/redmine/configuration_test.rb index c018aca72..8de4fb027 100644 --- a/test/unit/lib/redmine/configuration_test.rb +++ b/test/unit/lib/redmine/configuration_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 Redmine::ConfigurationTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/export/csv_test.rb b/test/unit/lib/redmine/export/csv_test.rb index 7d1d5b09b..17107ed19 100644 --- a/test/unit/lib/redmine/export/csv_test.rb +++ b/test/unit/lib/redmine/export/csv_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 CsvTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb index cbd951285..eef8e6e19 100644 --- a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf/issues_pdf_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 IssuesPdfHelperTest < ActiveSupport::TestCase fixtures :users, :projects, :roles, :members, :member_roles, diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb index fb94d9fef..6860c33be 100644 --- a/test/unit/lib/redmine/export/pdf_test.rb +++ b/test/unit/lib/redmine/export/pdf_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 PdfTest < ActiveSupport::TestCase fixtures :users, :projects, :roles, :members, :member_roles, diff --git a/test/unit/lib/redmine/field_format/attachment_format_test.rb b/test/unit/lib/redmine/field_format/attachment_format_test.rb index 85dbc08e8..808f3c3be 100644 --- a/test/unit/lib/redmine/field_format/attachment_format_test.rb +++ b/test/unit/lib/redmine/field_format/attachment_format_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 'redmine/field_format' class Redmine::AttachmentFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb index fc1557552..2b6eac547 100644 --- a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb +++ b/test/unit/lib/redmine/field_format/attachment_format_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' require 'redmine/field_format' class AttachmentFormatVisibilityTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/bool_format_test.rb b/test/unit/lib/redmine/field_format/bool_format_test.rb index 52f5b5806..3d5d4eec5 100644 --- a/test/unit/lib/redmine/field_format/bool_format_test.rb +++ b/test/unit/lib/redmine/field_format/bool_format_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 'redmine/field_format' class Redmine::BoolFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/enumeration_format_test.rb b/test/unit/lib/redmine/field_format/enumeration_format_test.rb index a4a2ed121..2384268ab 100644 --- a/test/unit/lib/redmine/field_format/enumeration_format_test.rb +++ b/test/unit/lib/redmine/field_format/enumeration_format_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 'redmine/field_format' class Redmine::EnumerationFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/field_format_test.rb b/test/unit/lib/redmine/field_format/field_format_test.rb index ee3ac7283..067405573 100644 --- a/test/unit/lib/redmine/field_format/field_format_test.rb +++ b/test/unit/lib/redmine/field_format/field_format_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 Redmine::FieldFormatTest < ActionView::TestCase include ApplicationHelper diff --git a/test/unit/lib/redmine/field_format/link_format_test.rb b/test/unit/lib/redmine/field_format/link_format_test.rb index d3666f5d0..1363bc977 100644 --- a/test/unit/lib/redmine/field_format/link_format_test.rb +++ b/test/unit/lib/redmine/field_format/link_format_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 'redmine/field_format' class Redmine::LinkFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/list_format_test.rb b/test/unit/lib/redmine/field_format/list_format_test.rb index d2ec52aeb..76e2dccb8 100644 --- a/test/unit/lib/redmine/field_format/list_format_test.rb +++ b/test/unit/lib/redmine/field_format/list_format_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 'redmine/field_format' class Redmine::ListFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/numeric_format_test.rb b/test/unit/lib/redmine/field_format/numeric_format_test.rb index 1cee59a4f..dad91251c 100644 --- a/test/unit/lib/redmine/field_format/numeric_format_test.rb +++ b/test/unit/lib/redmine/field_format/numeric_format_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 'redmine/field_format' class Redmine::NumericFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/user_field_format_test.rb b/test/unit/lib/redmine/field_format/user_field_format_test.rb index ed1eb2971..56122b49d 100644 --- a/test/unit/lib/redmine/field_format/user_field_format_test.rb +++ b/test/unit/lib/redmine/field_format/user_field_format_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 'redmine/field_format' class Redmine::UserFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb index 7d5f1c264..943ced7c6 100644 --- a/test/unit/lib/redmine/field_format/version_field_format_test.rb +++ b/test/unit/lib/redmine/field_format/version_field_format_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 'redmine/field_format' class Redmine::VersionFieldFormatTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/helpers/calendar_test.rb b/test/unit/lib/redmine/helpers/calendar_test.rb index 841a496be..cd8364e92 100644 --- a/test/unit/lib/redmine/helpers/calendar_test.rb +++ b/test/unit/lib/redmine/helpers/calendar_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 CalendarTest < ActiveSupport::TestCase def test_monthly diff --git a/test/unit/lib/redmine/helpers/diff_test.rb b/test/unit/lib/redmine/helpers/diff_test.rb index 26dafb570..16c8cc9c7 100644 --- a/test/unit/lib/redmine/helpers/diff_test.rb +++ b/test/unit/lib/redmine/helpers/diff_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 DiffTest < ActiveSupport::TestCase def test_diff diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb index 36f86327e..645500403 100644 --- a/test/unit/lib/redmine/helpers/gantt_test.rb +++ b/test/unit/lib/redmine/helpers/gantt_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 Redmine::Helpers::GanttHelperTest < Redmine::HelperTest fixtures :projects, :trackers, :projects_trackers, :issue_statuses, diff --git a/test/unit/lib/redmine/helpers/url_test.rb b/test/unit/lib/redmine/helpers/url_test.rb index 09d9b6c03..28c71b52c 100644 --- a/test/unit/lib/redmine/helpers/url_test.rb +++ b/test/unit/lib/redmine/helpers/url_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 URLTest < ActiveSupport::TestCase include Redmine::Helpers::URL diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb index 3b99b8236..a889b2fb3 100644 --- a/test/unit/lib/redmine/hook_test.rb +++ b/test/unit/lib/redmine/hook_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 Redmine::Hook::ManagerTest < ActionView::TestCase fixtures :projects, :users, :members, :member_roles, :roles, diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb index f6e7a804d..6b7513e74 100644 --- a/test/unit/lib/redmine/i18n_test.rb +++ b/test/unit/lib/redmine/i18n_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 Redmine::I18nTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/lib/redmine/info_test.rb b/test/unit/lib/redmine/info_test.rb index d83c60639..3553a5820 100644 --- a/test/unit/lib/redmine/info_test.rb +++ b/test/unit/lib/redmine/info_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 Redmine::InfoTest < ActiveSupport::TestCase def test_environment diff --git a/test/unit/lib/redmine/menu_manager/mapper_test.rb b/test/unit/lib/redmine/menu_manager/mapper_test.rb index c9abf4fa0..bd292aaf9 100644 --- a/test/unit/lib/redmine/menu_manager/mapper_test.rb +++ b/test/unit/lib/redmine/menu_manager/mapper_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 Redmine::MenuManager::MapperTest < ActiveSupport::TestCase test "Mapper#initialize should define a root MenuNode if menu is not present in items" do diff --git a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb index 14319b3bd..89fc57dd3 100644 --- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb +++ b/test/unit/lib/redmine/menu_manager/menu_helper_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 Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest include Redmine::MenuManager::MenuHelper diff --git a/test/unit/lib/redmine/menu_manager/menu_item_test.rb b/test/unit/lib/redmine/menu_manager/menu_item_test.rb index 0c8ec4672..fe3f1b751 100644 --- a/test/unit/lib/redmine/menu_manager/menu_item_test.rb +++ b/test/unit/lib/redmine/menu_manager/menu_item_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' module RedmineMenuTestHelper # Helpers diff --git a/test/unit/lib/redmine/menu_manager_test.rb b/test/unit/lib/redmine/menu_manager_test.rb index 1648002ed..d6dab107b 100644 --- a/test/unit/lib/redmine/menu_manager_test.rb +++ b/test/unit/lib/redmine/menu_manager_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 Redmine::MenuManagerTest < ActiveSupport::TestCase def test_map_should_yield_a_mapper diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb index 8af8ba5ef..de86974c6 100644 --- a/test/unit/lib/redmine/mime_type_test.rb +++ b/test/unit/lib/redmine/mime_type_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 Redmine::MimeTypeTest < ActiveSupport::TestCase def test_of diff --git a/test/unit/lib/redmine/notifiable_test.rb b/test/unit/lib/redmine/notifiable_test.rb index 215947bd2..5a0105e29 100644 --- a/test/unit/lib/redmine/notifiable_test.rb +++ b/test/unit/lib/redmine/notifiable_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 Redmine::NotifiableTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/pagination_helper_test.rb b/test/unit/lib/redmine/pagination_helper_test.rb index ae194c6ed..d17db109a 100644 --- a/test/unit/lib/redmine/pagination_helper_test.rb +++ b/test/unit/lib/redmine/pagination_helper_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 PaginationHelperTest < ActionView::TestCase include Redmine::Pagination::Helper diff --git a/test/unit/lib/redmine/pagination_test.rb b/test/unit/lib/redmine/pagination_test.rb index a3d4f58da..e7d70b94a 100644 --- a/test/unit/lib/redmine/pagination_test.rb +++ b/test/unit/lib/redmine/pagination_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 Redmine::PaginationTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/plugin_loader_test.rb b/test/unit/lib/redmine/plugin_loader_test.rb index e161f84e0..b39c10cfd 100644 --- a/test/unit/lib/redmine/plugin_loader_test.rb +++ b/test/unit/lib/redmine/plugin_loader_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 Redmine::PluginLoaderTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/plugin_test.rb b/test/unit/lib/redmine/plugin_test.rb index 24c06240c..21a4a3552 100644 --- a/test/unit/lib/redmine/plugin_test.rb +++ b/test/unit/lib/redmine/plugin_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 Redmine::PluginTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/project_jump_box_test.rb b/test/unit/lib/redmine/project_jump_box_test.rb index c183fabd5..b4a986675 100644 --- a/test/unit/lib/redmine/project_jump_box_test.rb +++ b/test/unit/lib/redmine/project_jump_box_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 Redmine::ProjectJumpBoxTest < ActiveSupport::TestCase fixtures :users, :projects, :user_preferences, :members, :roles, :member_roles diff --git a/test/unit/lib/redmine/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb index 58debcf8a..620beae2d 100644 --- a/test/unit/lib/redmine/safe_attributes_test.rb +++ b/test/unit/lib/redmine/safe_attributes_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 Redmine::SafeAttributesTest < ActiveSupport::TestCase fixtures :users diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb index 0bef95141..aa7a9a81f 100644 --- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_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 BazaarAdapterTest < ActiveSupport::TestCase REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb index 061c8b353..43d7b9266 100644 --- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_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 CvsAdapterTest < ActiveSupport::TestCase REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb index e23f70a6e..2b7139c85 100644 --- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_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 FilesystemAdapterTest < ActiveSupport::TestCase REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb index 55a9dbad0..f7451320d 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_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 GitAdapterTest < ActiveSupport::TestCase REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb index b329048d6..5d2dee63c 100644 --- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_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 MercurialAdapterTest < ActiveSupport::TestCase HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_DIR diff --git a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb index 042dbf6ec..1cbdaad2f 100644 --- a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_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 SubversionAdapterTest < ActiveSupport::TestCase if repository_configured?('subversion') diff --git a/test/unit/lib/redmine/search_test.rb b/test/unit/lib/redmine/search_test.rb index 219f40cfd..5428c92c7 100644 --- a/test/unit/lib/redmine/search_test.rb +++ b/test/unit/lib/redmine/search_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 Redmine::Search::Tokenize < ActiveSupport::TestCase def test_tokenize diff --git a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb b/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb index 7720a84c7..9b9c4d1d9 100644 --- a/test/unit/lib/redmine/syntax_highlighting/rouge_test.rb +++ b/test/unit/lib/redmine/syntax_highlighting/rouge_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 Redmine::SyntaxHighlighting::RougeTest < ActiveSupport::TestCase def test_filename_supported diff --git a/test/unit/lib/redmine/themes_test.rb b/test/unit/lib/redmine/themes_test.rb index 219f38c64..e06c4d5e3 100644 --- a/test/unit/lib/redmine/themes_test.rb +++ b/test/unit/lib/redmine/themes_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 Redmine::ThemesTest < ActiveSupport::TestCase def test_themes diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb index 5b9c628e0..ec1de3e87 100644 --- a/test/unit/lib/redmine/unified_diff_test.rb +++ b/test/unit/lib/redmine/unified_diff_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 Redmine::UnifiedDiffTest < ActiveSupport::TestCase def test_subversion_diff diff --git a/test/unit/lib/redmine/utils/date_calculation.rb b/test/unit/lib/redmine/utils/date_calculation.rb index d4a072f17..b639ad95f 100644 --- a/test/unit/lib/redmine/utils/date_calculation.rb +++ b/test/unit/lib/redmine/utils/date_calculation.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 Redmine::Utils::DateCalculationTest < ActiveSupport::TestCase include Redmine::Utils::DateCalculation diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb index 534353226..d5bd58f6b 100644 --- a/test/unit/lib/redmine/views/builders/json_test.rb +++ b/test/unit/lib/redmine/views/builders/json_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 Redmine::Views::Builders::JsonTest < ActiveSupport::TestCase def test_nil_and_false diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb index 26e7c2d9d..b8870d76d 100644 --- a/test/unit/lib/redmine/views/builders/xml_test.rb +++ b/test/unit/lib/redmine/views/builders/xml_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 Redmine::Views::Builders::XmlTest < ActiveSupport::TestCase def test_hash diff --git a/test/unit/lib/redmine/views/labelled_form_builder_test.rb b/test/unit/lib/redmine/views/labelled_form_builder_test.rb index d32445e27..ca70395d6 100644 --- a/test/unit/lib/redmine/views/labelled_form_builder_test.rb +++ b/test/unit/lib/redmine/views/labelled_form_builder_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 Redmine::Views::LabelledFormBuilderTest < Redmine::HelperTest include Rails.application.routes.url_helpers diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb index 818093f68..c8177d058 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_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 Redmine::WikiFormatting::CommonMark::ApplicationHelperTest < Redmine::HelperTest if Object.const_defined?(:CommonMarker) diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb index d00065b8b..b78e4c1a8 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/external_links_filter_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' if Object.const_defined?(:CommonMarker) require 'redmine/wiki_formatting/common_mark/external_links_filter' diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter_test.rb index 18cfe70d3..d3e47faef 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/fixup_auto_links_filter_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' if Object.const_defined?(:CommonMarker) require 'redmine/wiki_formatting/common_mark/fixup_auto_links_filter' diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb index 81d8acf5b..12ba3d8f7 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/formatter_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 Redmine::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase if Object.const_defined?(:CommonMarker) diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/markdown_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/markdown_filter_test.rb index 9071184d3..00f0510c8 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/markdown_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/markdown_filter_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' if Object.const_defined?(:CommonMarker) require 'redmine/wiki_formatting/common_mark/markdown_filter' diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb index 063727413..b9cce9bce 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/sanitization_filter_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' if Object.const_defined?(:CommonMarker) require 'redmine/wiki_formatting/common_mark/sanitization_filter' diff --git a/test/unit/lib/redmine/wiki_formatting/common_mark/syntax_highlight_filter_test.rb b/test/unit/lib/redmine/wiki_formatting/common_mark/syntax_highlight_filter_test.rb index f5aabe273..f069c52a2 100644 --- a/test/unit/lib/redmine/wiki_formatting/common_mark/syntax_highlight_filter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/common_mark/syntax_highlight_filter_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' if Object.const_defined?(:CommonMarker) require 'redmine/wiki_formatting/common_mark/syntax_highlight_filter' diff --git a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb index a7a13d740..d47de8bc4 100644 --- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/html_parser_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 Redmine::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/wiki_formatting/html_sanitizer_test.rb b/test/unit/lib/redmine/wiki_formatting/html_sanitizer_test.rb index 4c081de1b..4806958fe 100644 --- a/test/unit/lib/redmine/wiki_formatting/html_sanitizer_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/html_sanitizer_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 Redmine::WikiFormatting::HtmlSanitizerTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb index 28be28d47..d2bc7c407 100644 --- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/macros_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 Redmine::WikiFormatting::MacrosTest < Redmine::HelperTest include ApplicationHelper diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb index fa6d76f83..163cecbf2 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_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 Redmine::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase def setup diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb index df45d9efd..ee58ee3d2 100644 --- a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_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 Redmine::WikiFormatting::MarkdownHtmlParserTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 381cfdffc..30e619316 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -18,7 +18,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 'digest/md5' class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase diff --git a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb index 1c3bae996..e2a71ab78 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_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 Redmine::WikiFormatting::TextileHtmlParserTest < ActiveSupport::TestCase def setup diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb index 9d09ef59a..3d4bb39d0 100644 --- a/test/unit/lib/redmine/wiki_formatting_test.rb +++ b/test/unit/lib/redmine/wiki_formatting_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 Redmine::WikiFormattingTest < ActiveSupport::TestCase fixtures :issues diff --git a/test/unit/lib/redmine_test.rb b/test/unit/lib/redmine_test.rb index 0e7a966bd..30b1f148c 100644 --- a/test/unit/lib/redmine_test.rb +++ b/test/unit/lib/redmine_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' module RedmineMenuTestHelper # Assertions diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index b36259c14..179f893dc 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_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 MailHandlerTest < ActiveSupport::TestCase fixtures :users, :projects, :enabled_modules, :roles, diff --git a/test/unit/mailer_localisation_test.rb b/test/unit/mailer_localisation_test.rb index 574b690ff..63d6f4246 100644 --- a/test/unit/mailer_localisation_test.rb +++ b/test/unit/mailer_localisation_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 MailerLocalisationTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index b82d570bc..0e4159c92 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_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 MailerTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb index 0abd7894d..48a310c3c 100644 --- a/test/unit/member_test.rb +++ b/test/unit/member_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 MemberTest < ActiveSupport::TestCase fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb index 72dce3499..c2a7b2797 100644 --- a/test/unit/message_test.rb +++ b/test/unit/message_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 MessageTest < ActiveSupport::TestCase fixtures :projects, :roles, :members, :member_roles, :boards, :messages, diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb index b612466f1..f12782a34 100644 --- a/test/unit/news_test.rb +++ b/test/unit/news_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 NewsTest < ActiveSupport::TestCase fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb index 804efc9ec..c281a716c 100644 --- a/test/unit/principal_test.rb +++ b/test/unit/principal_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 PrincipalTest < ActiveSupport::TestCase fixtures :users, :projects, :members, :member_roles, :roles, diff --git a/test/unit/project_copy_test.rb b/test/unit/project_copy_test.rb index c05d4f430..1c7ccd037 100644 --- a/test/unit/project_copy_test.rb +++ b/test/unit/project_copy_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 ProjectCopyTest < ActiveSupport::TestCase fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/unit/project_members_inheritance_test.rb b/test/unit/project_members_inheritance_test.rb index 763456675..ead053146 100644 --- a/test/unit/project_members_inheritance_test.rb +++ b/test/unit/project_members_inheritance_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 ProjectMembersInheritanceTest < ActiveSupport::TestCase fixtures :roles, :users, diff --git a/test/unit/project_nested_set_concurrency_test.rb b/test/unit/project_nested_set_concurrency_test.rb index 376a3d161..80f2d7af3 100644 --- a/test/unit/project_nested_set_concurrency_test.rb +++ b/test/unit/project_nested_set_concurrency_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 ProjectNestedSetConcurrencyTest < ActiveSupport::TestCase self.use_transactional_tests = false diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb index 55535019d..4c81cff9b 100644 --- a/test/unit/project_nested_set_test.rb +++ b/test/unit/project_nested_set_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 ProjectNestedSetTest < ActiveSupport::TestCase def setup diff --git a/test/unit/project_query_test.rb b/test/unit/project_query_test.rb index 21ef90983..8a15608ff 100644 --- a/test/unit/project_query_test.rb +++ b/test/unit/project_query_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 ProjectQueryTest < ActiveSupport::TestCase fixtures :projects, :users, diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index bf77b6235..cbefa40af 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_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 ProjectTest < ActiveSupport::TestCase fixtures :projects, :trackers, :issue_statuses, :issues, diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index e4ac5bd6f..c6e67300d 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_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 QueryTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb index b8f1f7141..451aa157e 100644 --- a/test/unit/repository_bazaar_test.rb +++ b/test/unit/repository_bazaar_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 RepositoryBazaarTest < ActiveSupport::TestCase fixtures :projects diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb index 6a9a31c22..67cfbad3e 100644 --- a/test/unit/repository_cvs_test.rb +++ b/test/unit/repository_cvs_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 RepositoryCvsTest < ActiveSupport::TestCase fixtures :projects diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 9b4919921..829ab4179 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_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 RepositoryFilesystemTest < ActiveSupport::TestCase fixtures :projects diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb index 9ecf723e7..c975a0235 100644 --- a/test/unit/repository_git_test.rb +++ b/test/unit/repository_git_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 RepositoryGitTest < ActiveSupport::TestCase fixtures :projects, :repositories, :enabled_modules, :users, :roles diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb index d383394bd..5c53bfbf1 100644 --- a/test/unit/repository_mercurial_test.rb +++ b/test/unit/repository_mercurial_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 RepositoryMercurialTest < ActiveSupport::TestCase fixtures :projects diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb index 90ce785a2..67bcc8e38 100644 --- a/test/unit/repository_subversion_test.rb +++ b/test/unit/repository_subversion_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 RepositorySubversionTest < ActiveSupport::TestCase fixtures :projects, :repositories, :enabled_modules, :users, :roles diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index fc1330e7d..9d9aece54 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_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 RepositoryTest < ActiveSupport::TestCase fixtures :projects, diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb index 21b26d3e6..100358892 100644 --- a/test/unit/role_test.rb +++ b/test/unit/role_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 RoleTest < ActiveSupport::TestCase fixtures :roles, :workflows, :trackers, :users diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb index ed1464a91..01b6c6a00 100644 --- a/test/unit/search_test.rb +++ b/test/unit/search_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 SearchTest < ActiveSupport::TestCase fixtures :users, diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb index 80c632a5a..13db9069f 100644 --- a/test/unit/setting_test.rb +++ b/test/unit/setting_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 SettingTest < ActiveSupport::TestCase fixtures :users diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb index 49c689a65..13bb710cc 100644 --- a/test/unit/time_entry_activity_test.rb +++ b/test/unit/time_entry_activity_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 TimeEntryActivityTest < ActiveSupport::TestCase fixtures :enumerations, :time_entries, diff --git a/test/unit/time_entry_custom_field_test.rb b/test/unit/time_entry_custom_field_test.rb index e79958b79..4c558e985 100644 --- a/test/unit/time_entry_custom_field_test.rb +++ b/test/unit/time_entry_custom_field_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 TimeEntryCustomFieldTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/time_entry_import_test.rb b/test/unit/time_entry_import_test.rb index 36e7f574d..fc70236fd 100644 --- a/test/unit/time_entry_import_test.rb +++ b/test/unit/time_entry_import_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 TimeEntryImportTest < ActiveSupport::TestCase fixtures :projects, :enabled_modules, diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb index 9db12b440..bd50467f6 100644 --- a/test/unit/time_entry_query_test.rb +++ b/test/unit/time_entry_query_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 TimeEntryQueryTest < ActiveSupport::TestCase fixtures :issues, :projects, :users, diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb index 088af3504..26d486424 100644 --- a/test/unit/time_entry_test.rb +++ b/test/unit/time_entry_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 TimeEntryTest < ActiveSupport::TestCase include Redmine::I18n diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb index d8da1aca8..7d5ecd855 100644 --- a/test/unit/token_test.rb +++ b/test/unit/token_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 TokenTest < ActiveSupport::TestCase fixtures :tokens, :users, :email_addresses diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb index 8eef06e58..c8b5b479e 100644 --- a/test/unit/tracker_test.rb +++ b/test/unit/tracker_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 TrackerTest < ActiveSupport::TestCase fixtures :trackers, :workflows, :issue_statuses, :roles, :issues, :custom_fields, :projects, :projects_trackers, :enabled_modules diff --git a/test/unit/user_import_test.rb b/test/unit/user_import_test.rb index 87c4c2251..26cc62ab9 100644 --- a/test/unit/user_import_test.rb +++ b/test/unit/user_import_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 UserImportTest < ActiveSupport::TestCase fixtures :users, :auth_sources, :custom_fields diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb index 4ca79400e..9b125031a 100644 --- a/test/unit/user_preference_test.rb +++ b/test/unit/user_preference_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 UserPreferenceTest < ActiveSupport::TestCase fixtures :users, :user_preferences diff --git a/test/unit/user_query_test.rb b/test/unit/user_query_test.rb index e48173be7..d57213c88 100644 --- a/test/unit/user_query_test.rb +++ b/test/unit/user_query_test.rb @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -require File.expand_path('../../test_helper', __FILE__) +require_relative '../test_helper' class UserQueryTest < ActiveSupport::TestCase fixtures :users, :groups_users, :email_addresses, diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 53e7693ff..cdfcf5d6a 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_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 UserTest < ActiveSupport::TestCase fixtures :users, :email_addresses, :members, :projects, :roles, :member_roles, :auth_sources, diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb index 413190fdf..16040e510 100644 --- a/test/unit/version_test.rb +++ b/test/unit/version_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 VersionTest < ActiveSupport::TestCase fixtures :projects, :users, :issues, :issue_statuses, :trackers, diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb index a2de4c192..c645523e8 100644 --- a/test/unit/watcher_test.rb +++ b/test/unit/watcher_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 WatcherTest < ActiveSupport::TestCase fixtures :projects, :groups_users, :users, :email_addresses, :members, :member_roles, :roles, :enabled_modules, diff --git a/test/unit/wiki_content_test.rb b/test/unit/wiki_content_test.rb index fff5f796f..ab123d0e1 100644 --- a/test/unit/wiki_content_test.rb +++ b/test/unit/wiki_content_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 WikiContentTest < ActiveSupport::TestCase fixtures :projects, :enabled_modules, diff --git a/test/unit/wiki_content_version_test.rb b/test/unit/wiki_content_version_test.rb index ca887f092..d4ccb3a30 100644 --- a/test/unit/wiki_content_version_test.rb +++ b/test/unit/wiki_content_version_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 WikiContentVersionTest < ActiveSupport::TestCase fixtures :projects, :users, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb index 1f82bd9d9..68b088478 100644 --- a/test/unit/wiki_page_test.rb +++ b/test/unit/wiki_page_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 WikiPageTest < ActiveSupport::TestCase fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions diff --git a/test/unit/wiki_redirect_test.rb b/test/unit/wiki_redirect_test.rb index 73c20fffe..196b29a21 100644 --- a/test/unit/wiki_redirect_test.rb +++ b/test/unit/wiki_redirect_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 WikiRedirectTest < ActiveSupport::TestCase fixtures :projects, :wikis, :wiki_pages diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb index 3e134d303..a9577ed5b 100644 --- a/test/unit/wiki_test.rb +++ b/test/unit/wiki_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 WikiTest < ActiveSupport::TestCase fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions diff --git a/test/unit/workflow_test.rb b/test/unit/workflow_test.rb index 080cc3a90..ac41002f0 100644 --- a/test/unit/workflow_test.rb +++ b/test/unit/workflow_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 WorkflowTest < ActiveSupport::TestCase fixtures :roles, :trackers, :issue_statuses diff --git a/test/unit/workflow_transition_test.rb b/test/unit/workflow_transition_test.rb index eaa11309c..5299f4ca3 100644 --- a/test/unit/workflow_transition_test.rb +++ b/test/unit/workflow_transition_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 WorkflowTransitionTest < ActiveSupport::TestCase fixtures :roles, :trackers, :issue_statuses