-require File.expand_path(File.dirname(__FILE__) + '../../../../../test/test_helper')
+require_relative '../../../../test/test_helper'
class SamplePluginRoutingTest < ActionDispatch::IntegrationTest
def test_example
# Load the Redmine helper
-require File.expand_path(File.dirname(__FILE__) + '/../../../test/test_helper')
+require_relative '../../../test/test_helper'
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class <%= @controller_class %>ControllerTest < ActionController::TestCase
# Replace this with your real tests.
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class <%= @model_class %>Test < ActiveSupport::TestCase
# 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('../wiki_formatting/textile/redcloth3', __FILE__)
+require_relative 'wiki_formatting/textile/redcloth3'
require 'digest/md5'
module Redmine
# 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'
require 'webdrivers/chromedriver'
class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
# 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_case', __FILE__)
+require_relative 'test_case'
require 'tmpdir'
class RedminePmTest::RepositoryGitTest < RedminePmTest::TestCase
# 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_case', __FILE__)
+require_relative 'test_case'
require 'tmpdir'
class RedminePmTest::RepositorySubversionTest < RedminePmTest::TestCase
# 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'
module RedminePmTest
class TestCase < ActiveSupport::TestCase
# 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 AccountControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :roles
# 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 ActivitiesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 AdminControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles
# 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 ApplicationControllerTest < Redmine::ControllerTest
def test_back_url_should_remove_utf8_checkmark_from_referer
# 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 AttachmentsControllerTest < Redmine::ControllerTest
fixtures :users, :user_preferences, :projects, :roles, :members, :member_roles,
# 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 AttachmentsVisibilityTest < Redmine::ControllerTest
tests AttachmentsController
# 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 AuthSourcesControllerTest < Redmine::ControllerTest
fixtures :users, :auth_sources
# 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 AutoCompletesControllerTest < Redmine::ControllerTest
fixtures :projects, :issues, :issue_statuses,
# 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 BoardsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :boards, :messages, :enabled_modules
# 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 CalendarsControllerTest < Redmine::ControllerTest
fixtures :projects,
# 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 CommentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news, :comments
# 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 ContextMenusControllerTest < Redmine::ControllerTest
fixtures :projects,
# 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 CustomFieldEnumerationsControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
# 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 CustomFieldsControllerTest < Redmine::ControllerTest
fixtures :custom_fields, :custom_values,
# 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 DocumentsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
# 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 EmailAddressesControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses
# 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 EnumerationsControllerTest < Redmine::ControllerTest
fixtures :enumerations, :issues, :users
# 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 FilesControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 GanttsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 GroupsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
# 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 ImportsControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
# 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 IssueCategoriesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :enabled_modules, :issue_categories,
# 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 IssueRelationsControllerTest < Redmine::ControllerTest
fixtures :projects,
# 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 IssueStatusesControllerTest < Redmine::ControllerTest
fixtures :issue_statuses, :issues, :users, :trackers, :workflows
# 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 IssuesControllerTest < Redmine::ControllerTest
fixtures :projects,
# 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'
require 'issues_controller'
class IssuesControllerTransactionTest < Redmine::ControllerTest
# 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 IssuesCustomFieldsVisibilityTest < Redmine::ControllerTest
tests IssuesController
# 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 JournalsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles,
# 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 MailHandlerControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :projects, :enabled_modules,
# 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 MembersControllerTest < Redmine::ControllerTest
fixtures :projects, :members, :member_roles, :roles, :users
# 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 MessagesControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles, :boards, :messages, :enabled_modules,
# 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 MyControllerTest < Redmine::ControllerTest
fixtures :users, :email_addresses, :user_preferences,
# 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 NewsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
# 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 PreviewsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 PrincipalMembershipsControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :members, :member_roles, :roles, :groups_users
# 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 ProjectEnumerationsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 ProjectsControllerTest < Redmine::ControllerTest
fixtures :projects, :versions, :users, :email_addresses, :roles, :members,
# 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 QueriesControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
# 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 ReportsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 RepositoriesBazaarControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RepositoriesControllerTest < Redmine::RepositoryControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules,
# 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 RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RepositoriesFilesystemControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RepositoriesMercurialControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RepositoriesSubversionControllerTest < Redmine::RepositoryControllerTest
tests RepositoriesController
# 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 RolesControllerTest < Redmine::ControllerTest
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
# 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 SearchControllerTest < Redmine::ControllerTest
fixtures :projects, :projects_trackers,
# 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 SearchCustomFieldsVisibilityTest < Redmine::ControllerTest
tests SearchController
# 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 SessionsControllerTest < Redmine::ControllerTest
include Redmine::I18n
# 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 SettingsControllerTest < Redmine::ControllerTest
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 SysControllerTest < Redmine::ControllerTest
fixtures :projects, :repositories, :enabled_modules
# 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 TimelogControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules, :roles, :members,
# 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 TimelogCustomFieldsVisibilityTest < Redmine::ControllerTest
tests TimelogController
# 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 TimelogReportTest < Redmine::ControllerTest
tests TimelogController
# 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 TrackersControllerTest < Redmine::ControllerTest
fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses
# 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 UsersControllerTest < Redmine::ControllerTest
include Redmine::I18n
# 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 VersionsControllerTest < Redmine::ControllerTest
fixtures :projects, :enabled_modules,
# 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 VersionsCustomFieldsVisibilityTest < Redmine::ControllerTest
tests VersionsController
# 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 WatchersControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules,
# 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 WelcomeControllerTest < Redmine::ControllerTest
fixtures :projects, :news, :users, :members, :roles, :member_roles, :enabled_modules
# 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 WikiControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles,
# 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 WikisControllerTest < Redmine::ControllerTest
fixtures :projects, :users, :roles, :members, :member_roles, :enabled_modules, :wikis
# 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 WorkflowsControllerTest < Redmine::ControllerTest
fixtures :roles, :trackers, :workflows, :users, :issue_statuses, :custom_fields
# 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 ActivitiesHelperTest < Redmine::HelperTest
include ActivitiesHelper
# 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 ApplicationHelperTest < Redmine::HelperTest
include ERB::Util
# 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 AvatarsHelperTest < Redmine::HelperTest
include ERB::Util
# 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 CustomFieldsHelperTest < Redmine::HelperTest
include ApplicationHelper
# 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 GroupsHelperTest < Redmine::HelperTest
include ERB::Util
# 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 IssuesHelperTest < Redmine::HelperTest
include IssuesHelper
# 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 JournalsHelperTest < Redmine::HelperTest
include JournalsHelper
# 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 MembersHelperTest < Redmine::HelperTest
include ERB::Util
# 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 ProjectsHelperTest < Redmine::HelperTest
include ApplicationHelper
# 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 ProjectsQueriesHelperTest < Redmine::HelperTest
include ProjectsQueriesHelper
# 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 QueriesHelperTest < Redmine::HelperTest
include QueriesHelper
# 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 ReportsHlperTest < Redmine::HelperTest
include ReportsHelper
# 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 RoutesHelperTest < Redmine::HelperTest
fixtures :projects, :issues
# 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 SearchHelperTest < Redmine::HelperTest
include SearchHelper
# 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 SettingsHelperTest < Redmine::HelperTest
include SettingsHelper
# 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 SortHelperTest < Redmine::HelperTest
include SortHelper
# 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 TimelogHelperTest < Redmine::HelperTest
include TimelogHelper
# 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 VersionsHelperTest < Redmine::HelperTest
include Rails.application.routes.url_helpers
# 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 WatchersHelperTest < Redmine::HelperTest
include WatchersHelper
# 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 WikiHelperTest < Redmine::HelperTest
include WikiHelper
# 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
# 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,
# 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
# 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
# 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,
# 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
# 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
# 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
# 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,
# 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
# 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,
# 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
# 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,
# 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,
# 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
# 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(
# 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,
# 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
# 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
# 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
# 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,
# 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
# 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,
# 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,
# 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
# 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,
# 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,
# 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
# 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
# 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,
# 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,
# 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
# 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,
# 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,
# 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,
# 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,
# 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,
# 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
# 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
# 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
# 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
# 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,
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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,
# 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,
# 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,
# 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,
# 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,
# 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,
# 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,
# 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,
# 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,
# 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
# 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
if ENV["COVERAGE"]
require 'simplecov'
- require File.expand_path(File.dirname(__FILE__) + "/coverage/html_formatter")
+ require_relative 'coverage/html_formatter'
SimpleCov.formatter = Redmine::Coverage::HtmlFormatter
SimpleCov.start 'rails'
end
$redmine_test_ldap_server = ENV['REDMINE_TEST_LDAP_SERVER'] || '127.0.0.1'
ENV["RAILS_ENV"] = "test"
-require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
+require_relative '../config/environment'
require 'rails/test_help'
-require File.expand_path(File.dirname(__FILE__) + '/object_helpers')
+require_relative 'object_helpers'
include ObjectHelpers
require 'net/ldap'
# 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 ActivityTest < ActiveSupport::TestCase
fixtures :projects, :versions, :attachments, :users, :roles, :members, :member_roles, :issues, :journals, :journal_details,
# 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 AttachmentTest < ActiveSupport::TestCase
fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
# 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 AttachmentTest < ActiveSupport::TestCase
fixtures :users, :email_addresses, :projects, :roles, :members, :member_roles,
# 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 AuthSourceLdapTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 BoardTest < ActiveSupport::TestCase
fixtures :projects, :boards, :messages, :attachments, :watchers
# 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 ChangesetTest < ActiveSupport::TestCase
fixtures :projects, :repositories,
# 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 CommentTest < ActiveSupport::TestCase
fixtures :users, :email_addresses, :news, :comments, :projects, :enabled_modules,
# 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 CustomFieldTest < ActiveSupport::TestCase
fixtures :custom_fields, :roles, :projects,
# 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 CustomFieldUserFormatTest < ActiveSupport::TestCase
fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues
# 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 CustomFieldVersionFormatTest < ActiveSupport::TestCase
fixtures :custom_fields, :projects, :members, :users, :member_roles, :trackers, :issues, :versions
# 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 CustomValueTest < ActiveSupport::TestCase
fixtures :custom_fields, :custom_values, :users
# 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 DefaultDataTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 DocumentCategoryTest < ActiveSupport::TestCase
fixtures :enumerations, :documents, :issues
# 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 DocumentTest < ActiveSupport::TestCase
fixtures :projects, :enumerations, :documents, :attachments,
# 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 EmailAddressTest < ActiveSupport::TestCase
fixtures :users
# 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 EnabledModuleTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :wikis
# 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 EnumerationTest < ActiveSupport::TestCase
fixtures :enumerations, :issues, :custom_fields, :custom_values
# 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 GroupTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 PatchesTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 IssueCategoryTest < ActiveSupport::TestCase
fixtures :issue_categories, :issues, :users, :groups_users
# 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 IssueCustomFieldTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 IssueImportTest < ActiveSupport::TestCase
fixtures :projects, :enabled_modules,
# 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 IssueNestedSetConcurrencyTest < ActiveSupport::TestCase
fixtures :projects, :users,
# 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 IssueNestedSetTest < ActiveSupport::TestCase
fixtures :projects, :users, :roles,
# 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 IssuePriorityTest < ActiveSupport::TestCase
fixtures :enumerations, :issues
# 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 IssueRelationTest < ActiveSupport::TestCase
fixtures :projects,
# 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 IssueScopesTest < ActiveSupport::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,
# 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 IssueStatusTest < ActiveSupport::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,
# 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 IssueSubtaskingTest < ActiveSupport::TestCase
fixtures :projects, :users, :roles, :members, :member_roles,
# 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 IssueTest < ActiveSupport::TestCase
fixtures :projects, :users, :email_addresses, :user_preferences, :members, :member_roles, :roles,
# 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 IssueTransactionTest < ActiveSupport::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,
# 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 DestroyProjectJobTest < ActiveJob::TestCase
fixtures :users, :projects, :email_addresses
# 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 DestroyProjectsJobTest < ActiveJob::TestCase
fixtures :users, :projects, :email_addresses
# 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 JournalObserverTest < ActiveSupport::TestCase
fixtures :issues, :issue_statuses, :journals, :journal_details, :projects,
# 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 JournalTest < ActiveSupport::TestCase
fixtures :projects, :issues, :issue_statuses, :journals, :journal_details,
# 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::AccessControlTest < ActiveSupport::TestCase
def setup
# 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::Acts::MentionableTest < ActiveSupport::TestCase
fixtures :projects, :users, :email_addresses, :members, :member_roles, :roles,
# 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::Acts::PositionedWithScopeTest < ActiveSupport::TestCase
fixtures :projects, :boards
# 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::Acts::PositionedWithoutScopeTest < ActiveSupport::TestCase
fixtures :trackers, :issue_statuses
# 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::CipheringTest < ActiveSupport::TestCase
fixtures :auth_sources
# 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::CodesetUtilTest < ActiveSupport::TestCase
def test_to_utf8_by_setting_from_latin1
# 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::ConfigurationTest < ActiveSupport::TestCase
def setup
# 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 CsvTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 IssuesPdfHelperTest < ActiveSupport::TestCase
fixtures :users, :projects, :roles, :members, :member_roles,
# 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 PdfTest < ActiveSupport::TestCase
fixtures :users, :projects, :roles, :members, :member_roles,
# 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'
require 'redmine/field_format'
class Redmine::AttachmentFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class AttachmentFormatVisibilityTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::BoolFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::EnumerationFieldFormatTest < ActionView::TestCase
# 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::FieldFormatTest < ActionView::TestCase
include ApplicationHelper
# 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'
require 'redmine/field_format'
class Redmine::LinkFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::ListFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::NumericFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::UserFieldFormatTest < ActionView::TestCase
# 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'
require 'redmine/field_format'
class Redmine::VersionFieldFormatTest < ActionView::TestCase
# 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 CalendarTest < ActiveSupport::TestCase
def test_monthly
# 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 DiffTest < ActiveSupport::TestCase
def test_diff
# 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::Helpers::GanttHelperTest < Redmine::HelperTest
fixtures :projects, :trackers, :projects_trackers, :issue_statuses,
# 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 URLTest < ActiveSupport::TestCase
include Redmine::Helpers::URL
# 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::Hook::ManagerTest < ActionView::TestCase
fixtures :projects, :users, :members, :member_roles, :roles,
# 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::I18nTest < ActiveSupport::TestCase
include Redmine::I18n
# 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::InfoTest < ActiveSupport::TestCase
def test_environment
# 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::MenuManager::MapperTest < ActiveSupport::TestCase
test "Mapper#initialize should define a root MenuNode if menu is not present in items" do
# 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::MenuManager::MenuHelperTest < Redmine::HelperTest
include Redmine::MenuManager::MenuHelper
# 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'
module RedmineMenuTestHelper
# Helpers
# 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::MenuManagerTest < ActiveSupport::TestCase
def test_map_should_yield_a_mapper
# 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::MimeTypeTest < ActiveSupport::TestCase
def test_of
# 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::NotifiableTest < ActiveSupport::TestCase
def setup
# 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 PaginationHelperTest < ActionView::TestCase
include Redmine::Pagination::Helper
# 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::PaginationTest < ActiveSupport::TestCase
def setup
# 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::PluginLoaderTest < ActiveSupport::TestCase
def setup
# 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::PluginTest < ActiveSupport::TestCase
def setup
# 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::ProjectJumpBoxTest < ActiveSupport::TestCase
fixtures :users, :projects, :user_preferences, :members, :roles, :member_roles
# 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::SafeAttributesTest < ActiveSupport::TestCase
fixtures :users
# 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 BazaarAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/bazaar_repository').to_s
# 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 CvsAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/cvs_repository').to_s
# 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 FilesystemAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/filesystem_repository').to_s
# 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 GitAdapterTest < ActiveSupport::TestCase
REPOSITORY_PATH = Rails.root.join('tmp/test/git_repository').to_s
# 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 MercurialAdapterTest < ActiveSupport::TestCase
HELPERS_DIR = Redmine::Scm::Adapters::MercurialAdapter::HELPERS_DIR
# 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 SubversionAdapterTest < ActiveSupport::TestCase
if repository_configured?('subversion')
# 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::Search::Tokenize < ActiveSupport::TestCase
def test_tokenize
# 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::SyntaxHighlighting::RougeTest < ActiveSupport::TestCase
def test_filename_supported
# 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::ThemesTest < ActiveSupport::TestCase
def test_themes
# 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::UnifiedDiffTest < ActiveSupport::TestCase
def test_subversion_diff
# 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::Utils::DateCalculationTest < ActiveSupport::TestCase
include Redmine::Utils::DateCalculation
# 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::Views::Builders::JsonTest < ActiveSupport::TestCase
def test_nil_and_false
# 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::Views::Builders::XmlTest < ActiveSupport::TestCase
def test_hash
# 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::Views::LabelledFormBuilderTest < Redmine::HelperTest
include Rails.application.routes.url_helpers
# 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::WikiFormatting::CommonMark::ApplicationHelperTest < Redmine::HelperTest
if Object.const_defined?(:CommonMarker)
# 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'
if Object.const_defined?(:CommonMarker)
require 'redmine/wiki_formatting/common_mark/external_links_filter'
# 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'
if Object.const_defined?(:CommonMarker)
require 'redmine/wiki_formatting/common_mark/fixup_auto_links_filter'
# 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::WikiFormatting::CommonMark::FormatterTest < ActionView::TestCase
if Object.const_defined?(:CommonMarker)
# 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'
if Object.const_defined?(:CommonMarker)
require 'redmine/wiki_formatting/common_mark/markdown_filter'
# 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'
if Object.const_defined?(:CommonMarker)
require 'redmine/wiki_formatting/common_mark/sanitization_filter'
# 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'
if Object.const_defined?(:CommonMarker)
require 'redmine/wiki_formatting/common_mark/syntax_highlight_filter'
# 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::WikiFormatting::HtmlParserTest < ActiveSupport::TestCase
def setup
# 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::WikiFormatting::HtmlSanitizerTest < ActiveSupport::TestCase
def setup
# 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::WikiFormatting::MacrosTest < Redmine::HelperTest
include ApplicationHelper
# 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::WikiFormatting::MarkdownFormatterTest < ActionView::TestCase
def setup
# 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::WikiFormatting::MarkdownHtmlParserTest < ActiveSupport::TestCase
def setup
# 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'
require 'digest/md5'
class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
# 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::WikiFormatting::TextileHtmlParserTest < ActiveSupport::TestCase
def setup
# 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::WikiFormattingTest < ActiveSupport::TestCase
fixtures :issues
# 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'
module RedmineMenuTestHelper
# Assertions
# 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 MailHandlerTest < ActiveSupport::TestCase
fixtures :users, :projects, :enabled_modules, :roles,
# 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 MailerLocalisationTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 MailerTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 MemberTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 MessageTest < ActiveSupport::TestCase
fixtures :projects, :roles, :members, :member_roles, :boards, :messages,
# 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 NewsTest < ActiveSupport::TestCase
fixtures :projects, :users, :email_addresses, :roles, :members, :member_roles, :enabled_modules, :news
# 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 PrincipalTest < ActiveSupport::TestCase
fixtures :users, :projects, :members, :member_roles, :roles,
# 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 ProjectCopyTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 ProjectMembersInheritanceTest < ActiveSupport::TestCase
fixtures :roles, :users,
# 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 ProjectNestedSetConcurrencyTest < ActiveSupport::TestCase
self.use_transactional_tests = false
# 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 ProjectNestedSetTest < ActiveSupport::TestCase
def setup
# 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 ProjectQueryTest < ActiveSupport::TestCase
fixtures :projects, :users,
# 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 ProjectTest < ActiveSupport::TestCase
fixtures :projects, :trackers, :issue_statuses, :issues,
# 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 QueryTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 RepositoryBazaarTest < ActiveSupport::TestCase
fixtures :projects
# 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 RepositoryCvsTest < ActiveSupport::TestCase
fixtures :projects
# 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 RepositoryFilesystemTest < ActiveSupport::TestCase
fixtures :projects
# 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 RepositoryGitTest < ActiveSupport::TestCase
fixtures :projects, :repositories, :enabled_modules, :users, :roles
# 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 RepositoryMercurialTest < ActiveSupport::TestCase
fixtures :projects
# 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 RepositorySubversionTest < ActiveSupport::TestCase
fixtures :projects, :repositories, :enabled_modules, :users, :roles
# 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 RepositoryTest < ActiveSupport::TestCase
fixtures :projects,
# 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 RoleTest < ActiveSupport::TestCase
fixtures :roles, :workflows, :trackers, :users
# 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 SearchTest < ActiveSupport::TestCase
fixtures :users,
# 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 SettingTest < ActiveSupport::TestCase
fixtures :users
# 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 TimeEntryActivityTest < ActiveSupport::TestCase
fixtures :enumerations, :time_entries,
# 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 TimeEntryCustomFieldTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 TimeEntryImportTest < ActiveSupport::TestCase
fixtures :projects, :enabled_modules,
# 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 TimeEntryQueryTest < ActiveSupport::TestCase
fixtures :issues, :projects, :users,
# 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 TimeEntryTest < ActiveSupport::TestCase
include Redmine::I18n
# 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 TokenTest < ActiveSupport::TestCase
fixtures :tokens, :users, :email_addresses
# 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 TrackerTest < ActiveSupport::TestCase
fixtures :trackers, :workflows, :issue_statuses, :roles, :issues, :custom_fields, :projects, :projects_trackers, :enabled_modules
# 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 UserImportTest < ActiveSupport::TestCase
fixtures :users, :auth_sources, :custom_fields
# 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 UserPreferenceTest < ActiveSupport::TestCase
fixtures :users, :user_preferences
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-require File.expand_path('../../test_helper', __FILE__)
+require_relative '../test_helper'
class UserQueryTest < ActiveSupport::TestCase
fixtures :users, :groups_users, :email_addresses,
# 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 UserTest < ActiveSupport::TestCase
fixtures :users, :email_addresses, :members, :projects, :roles, :member_roles, :auth_sources,
# 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 VersionTest < ActiveSupport::TestCase
fixtures :projects, :users, :issues, :issue_statuses, :trackers,
# 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 WatcherTest < ActiveSupport::TestCase
fixtures :projects, :groups_users, :users, :email_addresses, :members, :member_roles, :roles, :enabled_modules,
# 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 WikiContentTest < ActiveSupport::TestCase
fixtures :projects, :enabled_modules,
# 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 WikiContentVersionTest < ActiveSupport::TestCase
fixtures :projects, :users, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
# 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 WikiPageTest < ActiveSupport::TestCase
fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
# 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 WikiRedirectTest < ActiveSupport::TestCase
fixtures :projects, :wikis, :wiki_pages
# 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 WikiTest < ActiveSupport::TestCase
fixtures :projects, :wikis, :wiki_pages, :wiki_contents, :wiki_content_versions
# 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 WorkflowTest < ActiveSupport::TestCase
fixtures :roles, :trackers, :issue_statuses
# 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 WorkflowTransitionTest < ActiveSupport::TestCase
fixtures :roles, :trackers, :issue_statuses