SharedFolder uses the proper VM#save method

This commit is contained in:
Mitchell Hashimoto 2010-04-08 01:42:48 -07:00
parent 7a533a40c9
commit 279704475d
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ module Vagrant
@runner.vm.shared_folders << folder @runner.vm.shared_folders << folder
end end
@runner.vm.save(true) @runner.vm.save
end end
def mount_folder(ssh, name, guestpath, sleeptime=5) def mount_folder(ssh, name, guestpath, sleeptime=5)

View File

@ -82,7 +82,7 @@ class SharedFoldersActionTest < Test::Unit::TestCase
shared_folders.expects(:<<).in_sequence(share_seq).with() { |sf| sf.name == "foo" && sf.host_path == "from" } shared_folders.expects(:<<).in_sequence(share_seq).with() { |sf| sf.name == "foo" && sf.host_path == "from" }
shared_folders.expects(:<<).in_sequence(share_seq).with() { |sf| sf.name == "bar" && sf.host_path == "bfrom" } shared_folders.expects(:<<).in_sequence(share_seq).with() { |sf| sf.name == "bar" && sf.host_path == "bfrom" }
@vm.stubs(:shared_folders).returns(shared_folders) @vm.stubs(:shared_folders).returns(shared_folders)
@vm.expects(:save).with(true).once @vm.expects(:save).once
@action.create_metadata @action.create_metadata
end end