vagrant/test/hobo/virtual_box_test.rb

15 lines
424 B
Ruby
Raw Normal View History

2010-01-22 07:52:10 +00:00
require File.join(File.dirname(__FILE__), '..', 'test_helper')
class VirtualBoxTest < Test::Unit::TestCase
setup do
# Stub out command so nothing actually happens
flexmock(VirtualBox)
end
context "modifying VMs" do
should "wrap double quotes around values with spaces" do
VirtualBox.should_receive(:command).with(/"my value"/)
VirtualBox.modify(@name, "key", "my value")
end
end
end