Tests passing again due to config.vm.customize change earlier

This commit is contained in:
Mitchell Hashimoto 2010-09-20 09:47:01 -06:00
parent f37710a4bd
commit 7d89d011fb
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ class CustomizeVMActionTest < Test::Unit::TestCase
end
should "not run anything if no customize blocks exist" do
@env.env.config.vm.proc_stack.clear
@internal_vm.expects(:save).never
@app.expects(:call).with(@env).once
@instance.call(@env)

View File

@ -42,7 +42,7 @@ class ConfigVMTest < Test::Unit::TestCase
should "add the customize proc to the proc stack" do
proc = Proc.new {}
@config.customize(&proc)
assert_equal [proc], @config.proc_stack
assert @config.proc_stack.include?(proc)
end
end