summaryrefslogtreecommitdiffstats
path: root/test/system
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-01-01 07:13:39 +0000
committerGo MAEDA <maeda@farend.jp>2023-01-01 07:13:39 +0000
commit1481c721a222ccf05a43ae98d1cf7730314a13d5 (patch)
tree7ffacec036458fd198e7cbf6f5ae72d7cc7eca3e /test/system
parent92bd67c279516f339866e95c702b39cee325ef05 (diff)
downloadredmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.tar.gz
redmine-1481c721a222ccf05a43ae98d1cf7730314a13d5.zip
Use `require_relative` instead of `require File.expand_path(..., __FILE__)` (#38093).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/system')
-rw-r--r--test/system/custom_field_enumerations_test.rb2
-rw-r--r--test/system/inline_autocomplete_test.rb2
-rw-r--r--test/system/issues_import_test.rb2
-rw-r--r--test/system/issues_test.rb2
-rw-r--r--test/system/keyboard_shortcuts_test.rb2
-rw-r--r--test/system/my_page_test.rb2
-rw-r--r--test/system/quick_jump_test.rb2
-rw-r--r--test/system/sudo_mode_test.rb2
-rw-r--r--test/system/timelog_test.rb2
9 files changed, 9 insertions, 9 deletions
diff --git a/test/system/custom_field_enumerations_test.rb b/test/system/custom_field_enumerations_test.rb
index 78815cb20..3df23254b 100644
--- a/test/system/custom_field_enumerations_test.rb
+++ b/test/system/custom_field_enumerations_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class CustomFieldEnumerationsTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/inline_autocomplete_test.rb b/test/system/inline_autocomplete_test.rb
index 367549b8f..16a8ebdce 100644
--- a/test/system/inline_autocomplete_test.rb
+++ b/test/system/inline_autocomplete_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class InlineAutocompleteSystemTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb
index 324d8ed40..d45d98868 100644
--- a/test/system/issues_import_test.rb
+++ b/test/system/issues_import_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class IssuesImportTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index 48bd9af63..a66b19e38 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class IssuesSystemTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/keyboard_shortcuts_test.rb b/test/system/keyboard_shortcuts_test.rb
index a49707c7c..23fbb49e6 100644
--- a/test/system/keyboard_shortcuts_test.rb
+++ b/test/system/keyboard_shortcuts_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class InlineAutocompleteSystemTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/my_page_test.rb b/test/system/my_page_test.rb
index bd7f3d343..f4aa580bd 100644
--- a/test/system/my_page_test.rb
+++ b/test/system/my_page_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class MyPageTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb
index eb7c83dfd..7722f4f5f 100644
--- a/test/system/quick_jump_test.rb
+++ b/test/system/quick_jump_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class QuickJumpTest < ApplicationSystemTestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
diff --git a/test/system/sudo_mode_test.rb b/test/system/sudo_mode_test.rb
index cc0761555..de6e9c47a 100644
--- a/test/system/sudo_mode_test.rb
+++ b/test/system/sudo_mode_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
class SudoModeSystemTest < ApplicationSystemTestCase
fixtures :users, :email_addresses
diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb
index baccdf608..b4ee1fd75 100644
--- a/test/system/timelog_test.rb
+++ b/test/system/timelog_test.rb
@@ -17,7 +17,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-require File.expand_path('../../application_system_test_case', __FILE__)
+require_relative '../application_system_test_case'
Capybara.default_max_wait_time = 2