do not use require_relative for test helper: this breaks file loading with tests
This commit is contained in:
parent
64ec21b764
commit
9489069603
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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>'
|
||||
|
@ -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,
|
||||
|
@ -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>'
|
||||
|
@ -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>'
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../../test_helper'
|
||||
require File.expand_path '../../../test_helper', __FILE__
|
||||
require 'digest/md5'
|
||||
|
||||
module WikiFormatting
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user