guests/general: Use require_relative in tests

This commit is contained in:
Seth Vargo 2016-06-06 12:22:03 -04:00
parent dc3b9c84da
commit 4418efd4a4
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
12 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
require File.expand_path("../../../../../base", __FILE__)
require_relative "../../../../base"
describe "VagrantPlugins::GuestLinux::Cap::MountSharedFolder" do
let(:machine) { double("machine") }

View File

@ -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

View File

@ -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) }

View File

@ -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) }

View File

@ -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) }

View File

@ -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) }

View File

@ -1,4 +1,4 @@
require File.expand_path("../../../../../base", __FILE__)
require_relative "../../../../base"
describe "VagrantPlugins::GuestTinyCore::Cap::ChangeHostName" do
let(:described_class) do

View File

@ -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")

View File

@ -1,4 +1,4 @@
require File.expand_path("../../../../../base", __FILE__)
require_relative "../../../../base"
require Vagrant.source_root.join("plugins/guests/windows/cap/halt")

View File

@ -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")

View File

@ -1,4 +1,4 @@
require File.expand_path("../../../../../base", __FILE__)
require_relative "../../../../base"
require Vagrant.source_root.join("plugins/guests/windows/cap/reboot")

View File

@ -1,4 +1,4 @@
require File.expand_path("../../../../../base", __FILE__)
require_relative "../../../../base"
require Vagrant.source_root.join("plugins/guests/windows/cap/rsync")