diff --git a/test/vagrant/action/vm/customize_test.rb b/test/vagrant/action/vm/customize_test.rb index 7c53476fd..84ecaeaa0 100644 --- a/test/vagrant/action/vm/customize_test.rb +++ b/test/vagrant/action/vm/customize_test.rb @@ -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) diff --git a/test/vagrant/config/vm_test.rb b/test/vagrant/config/vm_test.rb index 26fecb5d4..d9f304486 100644 --- a/test/vagrant/config/vm_test.rb +++ b/test/vagrant/config/vm_test.rb @@ -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