From 7a533a40c923bd2df9fc86b6c55b7e5fce843f4e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 Apr 2010 01:30:28 -0700 Subject: [PATCH] Forwarded ports task now calls VM#save properly --- lib/vagrant/actions/vm/forward_ports.rb | 2 +- test/vagrant/actions/vm/forward_ports_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/actions/vm/forward_ports.rb b/lib/vagrant/actions/vm/forward_ports.rb index c1517f911..6b3168a8d 100644 --- a/lib/vagrant/actions/vm/forward_ports.rb +++ b/lib/vagrant/actions/vm/forward_ports.rb @@ -38,7 +38,7 @@ module Vagrant @runner.vm.forwarded_ports << port end - @runner.vm.save(true) + @runner.vm.save end end end diff --git a/test/vagrant/actions/vm/forward_ports_test.rb b/test/vagrant/actions/vm/forward_ports_test.rb index fa73a6846..8516c2064 100644 --- a/test/vagrant/actions/vm/forward_ports_test.rb +++ b/test/vagrant/actions/vm/forward_ports_test.rb @@ -83,7 +83,7 @@ class ForwardPortsActionTest < Test::Unit::TestCase end @vm.expects(:forwarded_ports).returns(forwarded_ports) - @vm.expects(:save).with(true).once + @vm.expects(:save).once @action.forward_ports end end