vaguerent/test/hobo/virtual_box_test.rb
2010-01-21 23:57:31 -08:00

16 lines
480 B
Ruby

require File.join(File.dirname(__FILE__), '..', 'test_helper')
class VirtualBoxTest < Test::Unit::TestCase
setup do
# Stub out command so nothing actually happens
VirtualBox.stubs(:command)
end
context "modifying VMs" do
should "wrap double quotes around values with spaces" do
# TODO: how to use mocha with regex expectations?
#VirtualBox.expects(:command).with(/"my value"/)
VirtualBox.modify(@name, "key", "my value")
end
end
end