From e5374b912e4449526e45ae326182ee4184296776 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 13 Apr 2010 17:10:49 -0700 Subject: [PATCH] Box add testing --- test/vagrant/commands/box/add_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/vagrant/commands/box/add_test.rb b/test/vagrant/commands/box/add_test.rb index a0a8e7932..6aa25b272 100644 --- a/test/vagrant/commands/box/add_test.rb +++ b/test/vagrant/commands/box/add_test.rb @@ -24,5 +24,11 @@ class CommandsBoxAddTest < Test::Unit::TestCase Vagrant::Box.expects(:add).with(@env, @name, @path).once @instance.execute([@name, @path]) end + + should "show help if not enough arguments" do + Vagrant::Box.expects(:add).never + @instance.expects(:show_help).once + @instance.execute([]) + end end end