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/integration | |
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/integration')
95 files changed, 95 insertions, 95 deletions
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb index ba93dad92..04bca2d2c 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 bb775a5fc..efca29e66 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 e4b320f78..b9526aa4e 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 120c4f8a0..45925c48b 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 1a16e0a4b..6de463843 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 9ff4aedb5..ffabf9ff2 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 2905a3b6f..ffa4a4d43 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 c020b7a4e..5cdbd8816 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 3b14a6e38..63b0aa913 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 791b7369b..c96a39893 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 7226db497..00d0b96e4 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 198ac02c3..127873161 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 5ec44eb6b..fb4e18f93 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 f229a0bfa..4978b6f5b 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 cb7647585..c92ba55a9 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 8c13c19ca..132b6f815 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 f637d90f4..c5d711624 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 59f19a650..628125735 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 bb9b213c7..01ebbf610 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 33e2f59a2..76a2087e9 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 1827c8829..7bdc8f839 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 d8ae42576..f0c1973cb 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 01f0ac901..268f3be74 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 7a96c8373..01d46a5fd 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 34b0ec784..cdd9c2803 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 d1e5de8ea..e1871f893 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 797a6655a..1cd5765c8 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 7322cd2ee..d239aabb6 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 34bc51f75..81ac487ac 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 1c0b07e59..267a4bef9 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 571edc1b0..98c11e7f2 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 f7abae80b..d6caac41a 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 a7755ac29..9060a0fb3 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 265a1db17..febaa14e6 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 93ab661b3..c9f5c3537 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 89dff619b..6918b11f9 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 eb86dfb12..2b962ec79 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 ae24f5bd1..9eacded52 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 533c3eb4b..3bc01ee8f 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 9c5cefb7a..f7434468f 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 c5a16d954..600c65484 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 05eef97a7..cffd60356 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 285748d65..6219a6367 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 f145e56d1..b2dcc2def 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 7ed914929..af56e372c 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 8976f8b89..0715c0cbc 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 c5d8dc99f..281fddb86 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 e01e4d19b..ea5080d19 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 cca82b29c..b00cd5649 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 a020cfe5e..53ad75e04 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 376da97ed..5242699d7 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 cbd517e5f..43d03f88a 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 81fd6325e..5d1814fc3 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 d968ae81f..04315f108 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 2704513df..6eb6f6535 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 2c08ef9cd..e90322d88 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 421edaacb..205e8b1d9 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 440a213b8..11612d173 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 300301308..6894aea4e 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 ad64ebf31..69ba843a7 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 7400d7eb8..17f685ad2 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 d4d7f7f8f..d8e92ea31 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 0b91d30ad..7a2bc3f11 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 6c41286dc..de7d5b811 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 430f60d64..979de312b 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 8fd671784..8dd50161c 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 6ef1b37bd..3935278bc 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 4edd8b1fe..023eddd1c 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 854a36ae8..46055da7c 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 c1064cedc..e3895a634 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 b2a7c9b20..da39f83c4 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 b889278f3..3a12119b4 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 c8ab6aa93..e4116691c 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 9895ec511..c2087bfbe 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 a15b1adea..003358975 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 79a4a1bb0..f0d2e9cdb 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 302b02c56..c8d3c8026 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 5130b18cb..f90c965af 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 d1438258c..9f5246fd5 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 043786627..208b935ea 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 56cb4f57f..6caeced13 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 546f77354..cacf2860a 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 f2ac6162c..18c674f4f 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 8af3fb1f0..b4ba66969 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 8f2b7afdf..ff41832be 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 c123046e4..c46784766 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 a1fe5622e..67a09cabd 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 ab19118f5..e1af82a60 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 e3a4317b3..8c68f874b 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 cb3ac8230..8b0ba8ebd 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 4eb54898e..eb24de402 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 780053c8e..e08dc8307 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 d529e8704..a27f6869e 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 8f15bf9e8..cd6bf5491 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, |