added param expectation to export action recover call for cleanup

This commit is contained in:
John Bender 2010-08-22 01:08:20 -07:00
parent c248db2bf9
commit e9a9e4abc0
2 changed files with 1 additions and 3 deletions

View File

@ -24,7 +24,7 @@ class ExportVMActionTest < Test::Unit::TestCase
@instance.expects(:setup_temp_dir).in_sequence(seq)
@instance.expects(:export).in_sequence(seq)
@app.expects(:call).with(@env).in_sequence(seq)
@instance.expects(:recover).in_sequence(seq)
@instance.expects(:recover).in_sequence(seq).with(@env)
@instance.call(@env)
end

View File

@ -130,8 +130,6 @@ class ActionWardenTest < Test::Unit::TestCase
end
end
def new_env
Vagrant::Action::Environment.new(nil)
end