From da69bd60a4b5661708b9b1efa96da039590a6ac8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 23 Apr 2014 06:22:58 -0700 Subject: [PATCH] Fix some tests --- test/unit/vagrant/machine_test.rb | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/unit/vagrant/machine_test.rb b/test/unit/vagrant/machine_test.rb index 2ac2bb75e..9e8f6e5df 100644 --- a/test/unit/vagrant/machine_test.rb +++ b/test/unit/vagrant/machine_test.rb @@ -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