Check box action no longer needs to load_box!

This commit is contained in:
Mitchell Hashimoto 2010-09-27 13:42:53 -07:00
parent 1827365326
commit ea6904761f
2 changed files with 0 additions and 2 deletions

View File

@ -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)

View File

@ -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 {