Resume uses the raw start action
This commit is contained in:
parent
a11fb717b0
commit
6d4a23b6b8
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue