From f5f11cefc3a5305da4202cc53d77e41aa678ffd5 Mon Sep 17 00:00:00 2001 From: Peter Lehwess Date: Wed, 17 Oct 2018 15:43:37 +0200 Subject: [PATCH] Use require_relative instead of require for 'test_plugin_helper' --- test/controllers/api/v2/dlmlocks_controller_test.rb | 2 +- test/controllers/api/v2/hosts_controller_test.rb | 2 +- test/controllers/find_host_by_client_cert_test.rb | 2 +- test/controllers/foreman_dlm/dlmlocks_test.rb | 2 +- test/controllers/hosts_controller_test.rb | 2 +- test/models/foreman_dlm/dlm_facet_test.rb | 2 +- test/models/foreman_dlm/dlmlock_event_test.rb | 2 +- test/models/foreman_dlm/dlmlock_test.rb | 2 +- test/models/host_managed_test.rb | 2 +- test/models/host_monitoring_test.rb | 2 +- test/models/user_test.rb | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/test/controllers/api/v2/dlmlocks_controller_test.rb b/test/controllers/api/v2/dlmlocks_controller_test.rb index 7296ae2..30de6d2 100644 --- a/test/controllers/api/v2/dlmlocks_controller_test.rb +++ b/test/controllers/api/v2/dlmlocks_controller_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../../test_plugin_helper' class Api::V2::DlmlocksControllerTest < ActionController::TestCase let(:host1) { as_admin { FactoryBot.create(:host, :managed) } } diff --git a/test/controllers/api/v2/hosts_controller_test.rb b/test/controllers/api/v2/hosts_controller_test.rb index 957f699..45e0818 100644 --- a/test/controllers/api/v2/hosts_controller_test.rb +++ b/test/controllers/api/v2/hosts_controller_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../../test_plugin_helper' class Api::V2::HostsControllerTest < ActionController::TestCase let(:host) { FactoryBot.create(:host, :managed, :with_dlm_facet) } diff --git a/test/controllers/find_host_by_client_cert_test.rb b/test/controllers/find_host_by_client_cert_test.rb index d808e81..2f0ac33 100644 --- a/test/controllers/find_host_by_client_cert_test.rb +++ b/test/controllers/find_host_by_client_cert_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../test_plugin_helper' class FindHostByClientCertTest < ActionController::TestCase tests 'api/v2/dlmlocks' diff --git a/test/controllers/foreman_dlm/dlmlocks_test.rb b/test/controllers/foreman_dlm/dlmlocks_test.rb index e4c0c6d..bda4ce9 100644 --- a/test/controllers/foreman_dlm/dlmlocks_test.rb +++ b/test/controllers/foreman_dlm/dlmlocks_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../test_plugin_helper' module ForemanDlm class DlmlocksControllerTest < ActionController::TestCase diff --git a/test/controllers/hosts_controller_test.rb b/test/controllers/hosts_controller_test.rb index 36f361e..0fb8793 100644 --- a/test/controllers/hosts_controller_test.rb +++ b/test/controllers/hosts_controller_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../test_plugin_helper' class HostsControllerTest < ActionController::TestCase let(:host) { FactoryBot.create(:host, :with_dlm_facet) } diff --git a/test/models/foreman_dlm/dlm_facet_test.rb b/test/models/foreman_dlm/dlm_facet_test.rb index aa0208b..efb34a9 100644 --- a/test/models/foreman_dlm/dlm_facet_test.rb +++ b/test/models/foreman_dlm/dlm_facet_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../test_plugin_helper' module ForemanDlm class DlmFacetTest < ActiveSupport::TestCase diff --git a/test/models/foreman_dlm/dlmlock_event_test.rb b/test/models/foreman_dlm/dlmlock_event_test.rb index eff992a..22fad53 100644 --- a/test/models/foreman_dlm/dlmlock_event_test.rb +++ b/test/models/foreman_dlm/dlmlock_event_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../test_plugin_helper' module ForemanDlm class DlmlockEventTest < ActiveSupport::TestCase diff --git a/test/models/foreman_dlm/dlmlock_test.rb b/test/models/foreman_dlm/dlmlock_test.rb index 934a8d2..a7b32c4 100644 --- a/test/models/foreman_dlm/dlmlock_test.rb +++ b/test/models/foreman_dlm/dlmlock_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../../test_plugin_helper' module ForemanDlm class DlmlockTest < ActiveSupport::TestCase diff --git a/test/models/host_managed_test.rb b/test/models/host_managed_test.rb index b3cf73e..bc2fe95 100644 --- a/test/models/host_managed_test.rb +++ b/test/models/host_managed_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../test_plugin_helper' module Host class ManagedTest < ActiveSupport::TestCase diff --git a/test/models/host_monitoring_test.rb b/test/models/host_monitoring_test.rb index 8dcf80a..bfe9887 100644 --- a/test/models/host_monitoring_test.rb +++ b/test/models/host_monitoring_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../test_plugin_helper' class HostMonitoringTest < ActiveSupport::TestCase let(:host) { FactoryBot.create(:host, :managed, :with_monitoring) } diff --git a/test/models/user_test.rb b/test/models/user_test.rb index 938d23f..15f57ad 100644 --- a/test/models/user_test.rb +++ b/test/models/user_test.rb @@ -1,4 +1,4 @@ -require 'test_plugin_helper' +require_relative '../test_plugin_helper' class UserTest < ActiveSupport::TestCase should have_many(:dlmlock_events)