core: fix machine tests with provider changes
This commit is contained in:
parent
a924a7b48c
commit
78e7e2746f
|
@ -7,7 +7,11 @@ describe Vagrant::Machine do
|
||||||
include_context "unit"
|
include_context "unit"
|
||||||
|
|
||||||
let(:name) { "foo" }
|
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
|
let(:provider_cls) do
|
||||||
obj = double("provider_cls")
|
obj = double("provider_cls")
|
||||||
obj.stub(:new => provider)
|
obj.stub(:new => provider)
|
||||||
|
@ -132,7 +136,7 @@ describe Vagrant::Machine do
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|
||||||
provider_init_test
|
provider_init_test(instance)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue