do not use require_relative for test helper: this breaks file loading with tests

This commit is contained in:
Alexander Meindl 2023-02-26 11:00:48 +01:00
parent 64ec21b764
commit 9489069603
43 changed files with 43 additions and 43 deletions

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AccountControllerTest < Additionals::ControllerTest
fixtures :users, :groups_users, :email_addresses, :user_preferences,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsAssignToMeControllerTest < Additionals::ControllerTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsChangeStatusControllerTest < Additionals::ControllerTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsMacrosControllerTest < Additionals::ControllerTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdminControllerTest < Additionals::ControllerTest
fixtures :users, :email_addresses, :roles

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AutoCompletesControllerTest < Additionals::ControllerTest
fixtures :projects, :email_addresses,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class DashboardAsyncBlocksControllerTest < Additionals::ControllerTest
fixtures :users, :email_addresses, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class DashboardsControllerTest < Additionals::ControllerTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class IssuesControllerTest < Additionals::ControllerTest
fixtures :users, :email_addresses, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class ViewDashboardTopRenderOn < Redmine::Hook::ViewListener
render_on :view_dashboard_top, inline: '<div class="test">Example text</div>'

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class ReportsControllerTest < Additionals::ControllerTest
fixtures :users, :groups_users, :email_addresses, :user_preferences,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class ViewUsersShowContextualRenderOn < Redmine::Hook::ViewListener
render_on :view_users_show_contextual, inline: '<div class="test">Example text</div>'

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class ViewWelcomeIndexTopRenderOn < Redmine::Hook::ViewListener
render_on :view_welcome_index_top, inline: '<div class="test">Example text</div>'

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class WikiControllerTest < Additionals::ControllerTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
module ApiTest
class IssuesTest < Additionals::ApiTest

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
module ApiTest
class ProjectsTest < Additionals::ApiTest

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class CommonViewsTest < Additionals::IntegrationTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class JavascriptLibraryTest < Additionals::IntegrationTest
fixtures :projects,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class RoutingTest < Redmine::RoutingTest
def test_issue_assign_to_me

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsFontAwesomeTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsInfoTest < Additionals::TestCase
def test_system_infos

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsJournalTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsMacroTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsPluginTest < Additionals::TestCase
def test_known_plugin

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class AdditionalsTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class CoreExtTest < Additionals::TestCase
def test_strip_split_with_default_sep

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class DashboardContentTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class DashboardTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class EntityMethodTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
class GlobalHelperTest < Redmine::HelperTest
include Additionals::Helpers

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class I18nTest < Additionals::TestCase
include Redmine::I18n

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class IssueTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class ProjectTest < Additionals::TestCase
fixtures :projects, :trackers, :issue_statuses, :issues,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class QueryTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class RedmineAccessControlTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class RedminePluginKitLoaderTest < Additionals::TestCase
def setup

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class RoleTest < Additionals::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class TimeEntryTest < Additionals::TestCase
fixtures :users, :email_addresses,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class UserTest < Additionals::TestCase
fixtures :users, :groups_users, :email_addresses,

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
module WikiFormatting
class CommonMarkTest < ActiveSupport::TestCase

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
module WikiFormatting
class MarkdownTest < ActionView::TestCase

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../../test_helper'
require File.expand_path '../../../test_helper', __FILE__
require 'digest/md5'
module WikiFormatting

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true
require_relative '../test_helper'
require File.expand_path '../../test_helper', __FILE__
class WikiPageTest < Additionals::TestCase
fixtures :projects, :users, :roles,