Change VirtualBox version requirement to 3.1 until virtualbox gem supports 3.0 cleanly
This commit is contained in:
parent
08d204c03b
commit
e9940d83df
|
@ -45,10 +45,10 @@ if you can't get this working.
|
|||
VirtualBox::Command.vboxmanage = "/path/to/my/VBoxManage"
|
||||
VirtualBox::Global.vboxconfig = "~/path/to/VirtualBox.xml"
|
||||
msg
|
||||
elsif version.to_f < 3.0
|
||||
elsif version.to_f < 3.1
|
||||
error_and_exit(<<-msg)
|
||||
Vagrant has detected that you have VirtualBox version #{version} installed!
|
||||
Vagrant requires that you use at least VirtualBox version 3. Please install
|
||||
Vagrant requires that you use at least VirtualBox version 3.1. Please install
|
||||
a more recent version of VirtualBox to continue.
|
||||
msg
|
||||
end
|
||||
|
|
|
@ -26,9 +26,9 @@ class EnvTest < Test::Unit::TestCase
|
|||
Vagrant::Env.check_virtualbox!
|
||||
end
|
||||
|
||||
should "error and exit if VirtualBox is lower than version 3" do
|
||||
should "error and exit if VirtualBox is lower than version 3.1" do
|
||||
Vagrant::Env.expects(:error_and_exit).once
|
||||
VirtualBox::Command.expects(:version).returns("2.1.3r1041")
|
||||
VirtualBox::Command.expects(:version).returns("3.0.12r1041")
|
||||
Vagrant::Env.check_virtualbox!
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue