Fix some tests

This commit is contained in:
Mitchell Hashimoto 2014-04-23 06:22:58 -07:00
parent e1c79c4692
commit da69bd60a4
1 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,14 @@ describe Vagrant::Machine do
let(:provider_name) { :test }
let(:provider_options) { {} }
let(:base) { false }
let(:box) { Object.new }
let(:box) do
double("box").tap do |b|
b.stub(name: "foo")
b.stub(provider: :dummy)
b.stub(version: "1.0")
end
end
let(:config) { env.vagrantfile.config }
let(:data_dir) { Pathname.new(Dir.mktmpdir("vagrant")) }
let(:env) do