From fe8842c795f2f7643a13a31aebee581781305ba1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 5 Jan 2014 16:54:10 -0800 Subject: [PATCH] Fix failing tests --- test/unit/vagrant/plugin/manager_test.rb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/unit/vagrant/plugin/manager_test.rb b/test/unit/vagrant/plugin/manager_test.rb index d886656f1..34fdf66b6 100644 --- a/test/unit/vagrant/plugin/manager_test.rb +++ b/test/unit/vagrant/plugin/manager_test.rb @@ -45,11 +45,14 @@ describe Vagrant::Plugin::Manager do describe "#installed_specs" do it "has the plugins" do - runtime = double("runtime") - runtime.stub(specs: ["foo"]) - ::Bundler.stub(:load => runtime) + # We just add "i18n" because it is a dependency of Vagrant and + # we know it will be there. + sf = Vagrant::Plugin::StateFile.new(path) + sf.add_plugin("i18n") - expect(subject.installed_specs).to eql(["foo"]) + specs = subject.installed_specs + expect(specs.length).to eql(1) + expect(specs.first.name).to eql("i18n") end end end