15 lines
424 B
Ruby
15 lines
424 B
Ruby
|
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
|