core: fix machine tests with provider changes

This commit is contained in:
Mitchell Hashimoto 2014-01-26 14:33:22 -08:00
parent a924a7b48c
commit 78e7e2746f
1 changed files with 6 additions and 2 deletions

View File

@ -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