Forwarded ports task now calls VM#save properly
This commit is contained in:
parent
c4da4a6b9f
commit
7a533a40c9
|
@ -38,7 +38,7 @@ module Vagrant
|
||||||
@runner.vm.forwarded_ports << port
|
@runner.vm.forwarded_ports << port
|
||||||
end
|
end
|
||||||
|
|
||||||
@runner.vm.save(true)
|
@runner.vm.save
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ForwardPortsActionTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
@vm.expects(:forwarded_ports).returns(forwarded_ports)
|
@vm.expects(:forwarded_ports).returns(forwarded_ports)
|
||||||
@vm.expects(:save).with(true).once
|
@vm.expects(:save).once
|
||||||
@action.forward_ports
|
@action.forward_ports
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue