SharedFolder uses the proper VM#save method
This commit is contained in:
parent
7a533a40c9
commit
279704475d
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue