From ea6904761f35098ede507d3cd2dcf4a6311b333d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 27 Sep 2010 13:42:53 -0700 Subject: [PATCH] Check box action no longer needs to load_box! --- lib/vagrant/action/vm/check_box.rb | 1 - test/vagrant/action/vm/check_box_test.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/vagrant/action/vm/check_box.rb b/lib/vagrant/action/vm/check_box.rb index c7e3befb6..cf86cbae8 100644 --- a/lib/vagrant/action/vm/check_box.rb +++ b/lib/vagrant/action/vm/check_box.rb @@ -16,7 +16,6 @@ module Vagrant env.ui.info I18n.t("vagrant.actions.vm.check_box.not_found", :name => box_name) Vagrant::Box.add(env.env, box_name, box_url) - env.env.load_box! end @app.call(env) diff --git a/test/vagrant/action/vm/check_box_test.rb b/test/vagrant/action/vm/check_box_test.rb index c8dea75d4..9e372d861 100644 --- a/test/vagrant/action/vm/check_box_test.rb +++ b/test/vagrant/action/vm/check_box_test.rb @@ -47,7 +47,6 @@ class CheckBoxVMActionTest < Test::Unit::TestCase seq = sequence("seq") env.env.boxes.expects(:find).returns(nil) Vagrant::Box.expects(:add).with(env.env, env["config"].vm.box, env["config"].vm.box_url).in_sequence(seq) - env.env.expects(:load_box!).in_sequence(seq) app.expects(:call).with(env).once.in_sequence(seq) assert_nothing_raised {