Clean up some tests on the provision command

This commit is contained in:
Mitchell Hashimoto 2010-05-22 00:54:43 -07:00
parent c863457157
commit dcbf70b91d
1 changed files with 0 additions and 18 deletions

View File

@ -12,24 +12,6 @@ class CommandsProvisionTest < Test::Unit::TestCase
@instance.expects(:all_or_single).with([], :provision).once
@instance.execute
end
should "provision single if a name is given" do
@instance.expects(:provision_single).with("foo").once
@instance.execute(["foo"])
end
end
context "provisioning all" do
should "reprovision each VM" do
vms = { :foo => nil, :bar => nil, :baz => nil }
@env.stubs(:vms).returns(vms)
vms.each do |name, value|
@instance.expects(:provision_single).with(name).once
end
@instance.execute
end
end
context "provisioning a single VM" do