Skip to content

Commit

Permalink
Use require_relative instead of require for 'test_plugin_helper'
Browse files Browse the repository at this point in the history
  • Loading branch information
leewaa authored and timogoebel committed Oct 18, 2018
1 parent 9636cba commit f5f11ce
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/controllers/api/v2/dlmlocks_controller_test.rb
Original file line number Diff line number Diff line change
@@ -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) } }
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/api/v2/hosts_controller_test.rb
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/find_host_by_client_cert_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../test_plugin_helper'

class FindHostByClientCertTest < ActionController::TestCase
tests 'api/v2/dlmlocks'
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/foreman_dlm/dlmlocks_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../../test_plugin_helper'

module ForemanDlm
class DlmlocksControllerTest < ActionController::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/controllers/hosts_controller_test.rb
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion test/models/foreman_dlm/dlm_facet_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../../test_plugin_helper'

module ForemanDlm
class DlmFacetTest < ActiveSupport::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/models/foreman_dlm/dlmlock_event_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../../test_plugin_helper'

module ForemanDlm
class DlmlockEventTest < ActiveSupport::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/models/foreman_dlm/dlmlock_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../../test_plugin_helper'

module ForemanDlm
class DlmlockTest < ActiveSupport::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/models/host_managed_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../test_plugin_helper'

module Host
class ManagedTest < ActiveSupport::TestCase
Expand Down
2 changes: 1 addition & 1 deletion test/models/host_monitoring_test.rb
Original file line number Diff line number Diff line change
@@ -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) }
Expand Down
2 changes: 1 addition & 1 deletion test/models/user_test.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require 'test_plugin_helper'
require_relative '../test_plugin_helper'

class UserTest < ActiveSupport::TestCase
should have_many(:dlmlock_events)
Expand Down

0 comments on commit f5f11ce

Please sign in to comment.