Test to make sure VM is an action runner

This commit is contained in:
Mitchell Hashimoto 2010-02-22 14:00:13 -08:00
parent 2b1afa6f6f
commit 47149fe9a9
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,13 @@ class VMTest < Test::Unit::TestCase
Net::SSH.stubs(:start)
end
context "being an action runner" do
should "be an action runner" do
vm = Vagrant::VM.new
assert vm.is_a?(Vagrant::Actions::Runner)
end
end
context "finding a VM" do
should "return nil if the VM is not found" do
VirtualBox::VM.expects(:find).returns(nil)