`vagrant box` uses new Environment
This commit is contained in:
parent
32a951cb6c
commit
bafd15661d
|
@ -169,7 +169,7 @@ msg
|
||||||
# which action to take and calls the respective action method
|
# which action to take and calls the respective action method
|
||||||
# (see {box_add} and {box_remove})
|
# (see {box_add} and {box_remove})
|
||||||
def box(argv)
|
def box(argv)
|
||||||
Env.load!
|
Environment.load!
|
||||||
|
|
||||||
sub_commands = ["list", "add", "remove"]
|
sub_commands = ["list", "add", "remove"]
|
||||||
|
|
||||||
|
|
|
@ -255,7 +255,7 @@ class CommandsTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
should "load the environment" do
|
should "load the environment" do
|
||||||
Vagrant::Env.expects(:load!).once
|
Vagrant::Environment.expects(:load!).once
|
||||||
Vagrant::Commands.box(["add"])
|
Vagrant::Commands.box(["add"])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue