Resume uses the raw start action

This commit is contained in:
Mitchell Hashimoto 2010-07-06 21:42:02 -07:00
parent a11fb717b0
commit 6d4a23b6b8
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ module Vagrant
def call(env)
if env["vm"].vm.saved?
env.logger.info "Resuming suspended VM..."
env["vm"].start
env["actions"].run(:start)
end
@app.call(env)

View File

@ -19,7 +19,7 @@ class ResumeVMActionTest < Test::Unit::TestCase
@internal_vm.expects(:saved?).returns(true)
seq = sequence("seq")
@vm.expects(:start).once.in_sequence(seq)
@env.env.actions.expects(:run).with(:start).once.in_sequence(seq)
@app.expects(:call).with(@env).once.in_sequence(seq)
@instance.call(@env)
end