diff --git a/test/unit/plugins/commands/port/command_test.rb b/test/unit/plugins/commands/port/command_test.rb index 257a99be9..1f963fa17 100644 --- a/test/unit/plugins/commands/port/command_test.rb +++ b/test/unit/plugins/commands/port/command_test.rb @@ -11,6 +11,7 @@ describe VagrantPlugins::CommandPort::Command do iso_env.vagrantfile(<<-VF) Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true end VF iso_env.create_vagrant_env @@ -29,7 +30,6 @@ describe VagrantPlugins::CommandPort::Command do before do allow(machine).to receive(:state).and_return(state) - allow(machine).to receive_message_chain(:synced_folders).and_return( double(:types => []) ) allow(subject).to receive(:with_target_vms) { |&block| block.call(machine) } end @@ -38,7 +38,7 @@ describe VagrantPlugins::CommandPort::Command do iso_env.vagrantfile <<-EOH Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" - + config.vm.synced_folder ".", "/vagrant", disabled: true config.push.define "noop" do |push| push.bad = "ham" end diff --git a/test/unit/plugins/commands/push/command_test.rb b/test/unit/plugins/commands/push/command_test.rb index bc562306b..cba5c46b1 100644 --- a/test/unit/plugins/commands/push/command_test.rb +++ b/test/unit/plugins/commands/push/command_test.rb @@ -11,6 +11,7 @@ describe VagrantPlugins::CommandPush::Command do iso_env.vagrantfile(<<-VF) Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true end VF iso_env.create_vagrant_env @@ -47,6 +48,7 @@ describe VagrantPlugins::CommandPush::Command do iso_env.vagrantfile <<-EOH Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true config.push.define "noop" do |push| push.bad = "ham" diff --git a/test/unit/plugins/commands/validate/command_test.rb b/test/unit/plugins/commands/validate/command_test.rb index 0bcd45cbc..7ce031b58 100644 --- a/test/unit/plugins/commands/validate/command_test.rb +++ b/test/unit/plugins/commands/validate/command_test.rb @@ -30,6 +30,7 @@ describe VagrantPlugins::CommandValidate::Command do <<-VF Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true end VF end @@ -52,6 +53,7 @@ describe VagrantPlugins::CommandValidate::Command do <<-VF Vagrant.configure("2") do |config| config.vm.bix = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true end VF end @@ -67,6 +69,7 @@ describe VagrantPlugins::CommandValidate::Command do <<-VF Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.define "test" do |vm| vm.vm.provider :virtualbox @@ -97,6 +100,7 @@ describe VagrantPlugins::CommandValidate::Command do <<-VF Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.define "test" do |vm| vm.vm.provider :virtualbox @@ -127,6 +131,7 @@ describe VagrantPlugins::CommandValidate::Command do <<-VF Vagrant.configure("2") do |config| config.vm.box = "hashicorp/precise64" + config.vm.synced_folder ".", "/vagrant", disabled: true config.vm.define "test" do |vm| vm.vm.hostname = "test"