guests/general: Use require_relative in tests
This commit is contained in:
parent
dc3b9c84da
commit
4418efd4a4
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do
|
||||
let(:machine) { double("machine") }
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
require_relative "../../../../../../plugins/guests/smartos/config"
|
||||
|
||||
describe "VagrantPlugins::VagrantPlugins::Cap::ChangeHostName" do
|
||||
let(:plugin) { VagrantPlugins::GuestSmartos::Plugin.components.guest_capabilities[:smartos].get(:change_host_name) }
|
||||
|
@ -30,4 +31,3 @@ describe "VagrantPlugins::VagrantPlugins::Cap::ChangeHostName" do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::VagrantPlugins::Cap::ConfigureNetworks" do
|
||||
let(:plugin) { VagrantPlugins::GuestSmartos::Plugin.components.guest_capabilities[:smartos].get(:configure_networks) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::VagrantPlugins::Cap::Halt" do
|
||||
let(:plugin) { VagrantPlugins::GuestSmartos::Plugin.components.guest_capabilities[:smartos].get(:halt) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::VagrantPlugins::Cap::MountNFS" do
|
||||
let(:plugin) { VagrantPlugins::GuestSmartos::Plugin.components.guest_capabilities[:smartos].get(:mount_nfs_folder) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::VagrantPlugins::Cap::Rsync" do
|
||||
let(:plugin) { VagrantPlugins::GuestSmartos::Plugin.components.guest_capabilities[:smartos].get(:rsync_installed) }
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
describe "VagrantPlugins::GuestTinyCore::Cap::ChangeHostName" do
|
||||
let(:described_class) do
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/windows/cap/change_host_name")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/windows/cap/halt")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/windows/cap/mount_shared_folder")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/windows/cap/reboot")
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
require File.expand_path("../../../../../base", __FILE__)
|
||||
require_relative "../../../../base"
|
||||
|
||||
require Vagrant.source_root.join("plugins/guests/windows/cap/rsync")
|
||||
|
||||
|
|
Loading…
Reference in New Issue