Box add testing

This commit is contained in:
Mitchell Hashimoto 2010-04-13 17:10:49 -07:00
parent c744f7afde
commit e5374b912e
1 changed files with 6 additions and 0 deletions

View File

@ -24,5 +24,11 @@ class CommandsBoxAddTest < Test::Unit::TestCase
Vagrant::Box.expects(:add).with(@env, @name, @path).once Vagrant::Box.expects(:add).with(@env, @name, @path).once
@instance.execute([@name, @path]) @instance.execute([@name, @path])
end end
should "show help if not enough arguments" do
Vagrant::Box.expects(:add).never
@instance.expects(:show_help).once
@instance.execute([])
end
end end
end end