From 78e7e2746f41de421c8d6dce092dd9cef21e993d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 26 Jan 2014 14:33:22 -0800 Subject: [PATCH] core: fix machine tests with provider changes --- test/unit/vagrant/machine_test.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/unit/vagrant/machine_test.rb b/test/unit/vagrant/machine_test.rb index afcca8478..0be5455be 100644 --- a/test/unit/vagrant/machine_test.rb +++ b/test/unit/vagrant/machine_test.rb @@ -7,7 +7,11 @@ describe Vagrant::Machine do include_context "unit" let(:name) { "foo" } - let(:provider) { double("provider") } + let(:provider) do + double("provider").tap do |obj| + obj.stub(:_initialize => nil) + end + end let(:provider_cls) do obj = double("provider_cls") obj.stub(:new => provider) @@ -132,7 +136,7 @@ describe Vagrant::Machine do true end - provider_init_test + provider_init_test(instance) end end end