mirror of
https://github.com/redmine/redmine.git
synced 2025-11-11 15:56:03 +01:00
Use require_relative instead of require File.expand_path(..., __FILE__) (#38093).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22016 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::ApiTest < Redmine::ApiTest::Base
|
||||
fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::AuthenticationTest < Redmine::ApiTest::Base
|
||||
fixtures :users
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::CustomFieldsAttributeTest < Redmine::ApiTest::Base
|
||||
fixtures :users
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::CustomFieldsTest < Redmine::ApiTest::Base
|
||||
fixtures :users, :custom_fields
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::DisabledRestApiTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::EnumerationsTest < Redmine::ApiTest::Base
|
||||
fixtures :enumerations
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::FilesTest < Redmine::ApiTest::Base
|
||||
fixtures :projects,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::GroupsTest < Redmine::ApiTest::Base
|
||||
fixtures :users, :groups_users, :email_addresses
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :users, :issue_categories, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::IssueRelationsTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::IssueStatusesTest < Redmine::ApiTest::Base
|
||||
fixtures :issue_statuses
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::IssuesTest < Redmine::ApiTest::Base
|
||||
fixtures(
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::JournalTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :issues, :issue_statuses, :journals, :journal_details,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::JsonpTest < Redmine::ApiTest::Base
|
||||
fixtures :trackers
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::MembershipsTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :users, :roles, :members, :member_roles
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::MyTest < Redmine::ApiTest::Base
|
||||
fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::NewsTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::ProjectsTest < Redmine::ApiTest::Base
|
||||
include ActiveJob::TestHelper
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::QueriesTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::RepositoriesTest < Redmine::ApiTest::Base
|
||||
fixtures :users,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base
|
||||
fixtures :roles
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::SearchTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :projects_trackers,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::TimeEntriesTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::TrackersTest < Redmine::ApiTest::Base
|
||||
fixtures :trackers
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::UsersTest < Redmine::ApiTest::Base
|
||||
fixtures :users, :email_addresses, :members, :member_roles, :roles, :projects
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::VersionsTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :trackers, :issue_statuses, :issues,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
require_relative '../../test_helper'
|
||||
|
||||
class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
|
||||
fixtures :projects, :users, :roles, :members, :member_roles,
|
||||
|
||||
Reference in New Issue
Block a user