diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-01 07:13:39 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-01 07:13:39 +0000 |
commit | 1481c721a222ccf05a43ae98d1cf7730314a13d5 (patch) | |
tree | 7ffacec036458fd198e7cbf6f5ae72d7cc7eca3e /test/unit | |
parent | 92bd67c279516f339866e95c702b39cee325ef05 (diff) | |
download | redmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.tar.gz redmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.zip |
Use `require_relative` instead of `require File.expand_path(..., __FILE__)` (#38093).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
148 files changed, 148 insertions, 148 deletions
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb index 776ed4f4d..2cfbeae00 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 1bb1eb973..d4ef2f7cd 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 b838d25df..392322d0b 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 bd0babe3a..958c46e97 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 516acd018..38e66e386 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 251f0773a..b36fc7dcc 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 d4b0ce757..68ae898f1 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 17e7edee2..5bdd79038 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 66cb44055..7f9946312 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 1fe58f45e..8962aa301 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 c1ff6988e..166429e3b 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 293281094..9adf97c14 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 52f7ad90f..125c199ba 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 82d055d2c..19e162cad 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 2a1636dc9..2cba7bbad 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 6d99e7efe..4df1562b3 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 075f0a029..25dfb14c4 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 0ae78e73a..92685e21c 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 9403efd82..317cbba14 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 14ad3385f..c5f2dffa6 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 3174d7e10..716fda718 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 c5d871ac7..f6ea0570e 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 2767426b2..9400b62cc 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 bf47a4106..5f9873844 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 54659f95b..efd58b718 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 b250f62a4..0b64b117c 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 fe71ad9c3..358cd5f67 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 a6ba05387..3d2366886 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 993393c98..b65c20b0e 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 711d081de..14dca00e3 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 057214dbc..b022546ae 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 9876a0077..83aaa88d3 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 518ed06a3..9e2f3449e 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 c91f935f3..6e692c9fd 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 f12a9a8ae..511b16415 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 fec562499..9fe751793 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 91fef8eb2..1f67d37d7 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 3c7a48347..22dc746c7 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 fce6b8de8..f8a93bf11 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 1981a4007..c04f36369 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 79e6a587d..5a00f1afd 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 4b75cdfce..b62ab68c8 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 596bb1762..cebcb2db3 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 1b239332b..4dd40b9fc 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 edea888c1..899d6e0f6 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 d0910c3b5..6e8b95424 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 2cf1144c6..87f4f47cd 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 dfa3be6fb..0e65d7499 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 4bb0c59e9..3903a3d50 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 3b5779602..090405b15 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 f70efb2cf..32c881fd5 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 75a8a37fc..116a03ad2 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 e3f3deba9..9ced022fb 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 195a27f51..5df3632bf 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 d3c5873a6..8cae63ca7 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 c95999853..ca9f9c904 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 90e5f0b64..a9cce69b1 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 a3cfead37..0b97a7f20 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 b169c14f0..8ba8aa9c4 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 7f4a0598d..78119ee73 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 c9d00b8a5..c146549f1 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 0ec0a95ab..c56a22201 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 cfc0595e9..4bbf6ceef 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 8015b583c..673e45901 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 a2fe2abf7..2d7491d82 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 2bb4e8dee..e74408f05 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 42587044c..cbf1d3dec 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 57c0b5784..11e73bad4 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 5d03c9663..07d3f7284 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 513606405..c2383bc08 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 5fe56187d..ed5943346 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 e113f5808..02df23236 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 310d2bf35..372de4d54 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 15a2fe177..4f031b816 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 1e8b163b7..0d22adaa3 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 ec75cf010..b934c047f 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 419f97324..2d13173e6 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 1e017828e..95dcea35e 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 67de472f5..39d92cdc1 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 f7b1d560c..bb2336375 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 fbea56682..67ad46183 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 47c5ba014..129a19cf0 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 aa3bf3de3..1794196f8 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 df466360b..15eff8b44 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 c4eed7318..27e86289e 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 acaf6a27c..2d7d8de94 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 808b7b93d..6aa259c86 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 075a16fd4..be96c875d 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 a645d0416..6ddfafcb4 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 43d5533ac..ec2d319ed 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 b71cf17b9..af7aea46a 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 4ef04991f..0efc3ef98 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 c7f37bffd..98bbb49a1 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 8de671cc6..6741c7174 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 4c0a8b02c..d3c57f619 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 6930251df..4f3c2c534 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 72deca02e..39144aa47 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 120de06b8..04781ca21 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 7cb2a0e88..33bc8a269 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 f057bdf44..ce6743365 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 4d4179948..c1923dd07 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 fe48f2be9..f3c8a8138 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 a9a824112..7c882ecfb 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 eb6346bb0..f59c908ab 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 7a2ff50b8..bc9439c68 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 ddc3f90e3..0c8a9895a 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 8f21e9a0b..99d67423f 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 7fbaff6d6..fd54123cb 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 7737d4e34..82446c0a3 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 63b409d46..a9d39c60b 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 ece873df4..31b7c3de0 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 d6f338d71..917805e51 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 dd0c4493e..b1b414db9 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 e98a4b9ff..e835d2b50 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 29e457942..72b62dc4e 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 6c925e6fb..efa761d02 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 c83009a72..3e478e66e 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 9a0d3a7e9..6c05c9b95 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 039e9dafa..64e6b6705 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 c0f53eaf0..543ed210e 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 1a5c15b1f..c6e5acb26 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 3c39d5aa4..95f0ac386 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 51312ad2c..955558307 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 01a9f1838..a5645e5f4 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 9915ad2f4..cd4cea9b7 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 385215a76..ea8d8b29d 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 48775ae5e..7c9e3d19a 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 97558e0c4..3927949c0 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 8c70d4817..bfbf534ab 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 91625f7d6..acad84e38 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 7cbc3acdc..3766f12cb 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 c6cdbd945..562917a4d 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 6a7afa863..601453669 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 bf2fd2b38..da6c63064 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 36b7419eb..d9c34f96a 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 d4f3f8a39..55cf0988a 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 2040511d4..67157d5a2 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 0dbf87092..9bb9c816d 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 b5448c9cd..b6d9a34ef 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 cf8b229bc..d51684bc0 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 1da452699..50eeee1c0 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 d215c3f20..c94a386f0 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 7ad000ee5..9822ab40d 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 cc917547c..9e7633f08 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 dcdcfb996..5289895cc 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 e051b7772..da791dff4 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 6196c4081..c37f7f440 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 3bb6db3cc..22bc53200 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 |