Check box action no longer needs to load_box!
This commit is contained in:
parent
1827365326
commit
ea6904761f
|
@ -16,7 +16,6 @@ module Vagrant
|
||||||
|
|
||||||
env.ui.info I18n.t("vagrant.actions.vm.check_box.not_found", :name => box_name)
|
env.ui.info I18n.t("vagrant.actions.vm.check_box.not_found", :name => box_name)
|
||||||
Vagrant::Box.add(env.env, box_name, box_url)
|
Vagrant::Box.add(env.env, box_name, box_url)
|
||||||
env.env.load_box!
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@app.call(env)
|
@app.call(env)
|
||||||
|
|
|
@ -47,7 +47,6 @@ class CheckBoxVMActionTest < Test::Unit::TestCase
|
||||||
seq = sequence("seq")
|
seq = sequence("seq")
|
||||||
env.env.boxes.expects(:find).returns(nil)
|
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)
|
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)
|
app.expects(:call).with(env).once.in_sequence(seq)
|
||||||
|
|
||||||
assert_nothing_raised {
|
assert_nothing_raised {
|
||||||
|
|
Loading…
Reference in New Issue