diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index f9e17e5..8b27e66 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative '../test_helper' +require File.expand_path '../../test_helper', __FILE__ class MyControllerTest < RedmineSudo::ControllerTest fixtures :users, :email_addresses, :user_preferences, :roles, :projects, :members, :member_roles, diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 133b99e..c95ec86 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative '../test_helper' +require File.expand_path '../../test_helper', __FILE__ class UsersControllerTest < RedmineSudo::ControllerTest fixtures :users, :email_addresses, :groups_users, :roles, :user_preferences, diff --git a/test/test_helper.rb b/test/test_helper.rb index da61f4a..ecf90f1 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -13,7 +13,7 @@ end end -require_relative '../../../test/test_helper' +require File.expand_path "#{File.dirname __FILE__}/../../../test/test_helper" module RedmineSudo module TestHelper diff --git a/test/unit/i18n_test.rb b/test/unit/i18n_test.rb index a86ba28..7b9ad07 100644 --- a/test/unit/i18n_test.rb +++ b/test/unit/i18n_test.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative '../test_helper' +require File.expand_path '../../test_helper', __FILE__ class I18nTest < RedmineSudo::TestCase include Redmine::I18n @@ -19,7 +19,7 @@ def test_valid_languages end def test_locales_validness - lang_files_count = Rails.root.glob('plugins/additionals/config/locales/*.yml').size + lang_files_count = Rails.root.glob('plugins/redmine_sudo/config/locales/*.yml').size assert_equal 9, lang_files_count valid_languages.each do |lang| diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 16bb671..0344cef 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -require_relative '../test_helper' +require File.expand_path '../../test_helper', __FILE__ class UserTest < RedmineSudo::TestCase fixtures :users, :groups_users, :email_addresses, :user_preferences,