Fix environment tests for new VB 3.2 min. requirement
This commit is contained in:
parent
b97c257904
commit
e751d3e21a
|
@ -7,7 +7,7 @@ class EnvironmentTest < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
should "not error and exit if everything is good" do
|
should "not error and exit if everything is good" do
|
||||||
VirtualBox.expects(:version).returns("3.1.4")
|
VirtualBox.expects(:version).returns("3.2.4")
|
||||||
Vagrant::Environment.expects(:error_and_exit).never
|
Vagrant::Environment.expects(:error_and_exit).never
|
||||||
Vagrant::Environment.check_virtualbox!
|
Vagrant::Environment.check_virtualbox!
|
||||||
end
|
end
|
||||||
|
@ -18,15 +18,15 @@ class EnvironmentTest < Test::Unit::TestCase
|
||||||
Vagrant::Environment.check_virtualbox!
|
Vagrant::Environment.check_virtualbox!
|
||||||
end
|
end
|
||||||
|
|
||||||
should "error and exit if VirtualBox is lower than version 3.1" do
|
should "error and exit if VirtualBox is lower than version 3.2" do
|
||||||
version = "3.0.12r1041"
|
version = "3.1.12r1041"
|
||||||
Vagrant::Environment.expects(:error_and_exit).with(:virtualbox_invalid_version, :version => version.to_s).once
|
Vagrant::Environment.expects(:error_and_exit).with(:virtualbox_invalid_version, :version => version.to_s).once
|
||||||
VirtualBox.expects(:version).returns(version)
|
VirtualBox.expects(:version).returns(version)
|
||||||
Vagrant::Environment.check_virtualbox!
|
Vagrant::Environment.check_virtualbox!
|
||||||
end
|
end
|
||||||
|
|
||||||
should "error and exit for OSE VirtualBox" do
|
should "error and exit for OSE VirtualBox" do
|
||||||
version = "3.1.6_OSE"
|
version = "3.2.6_OSE"
|
||||||
Vagrant::Environment.expects(:error_and_exit).with(:virtualbox_invalid_ose, :version => version.to_s).once
|
Vagrant::Environment.expects(:error_and_exit).with(:virtualbox_invalid_ose, :version => version.to_s).once
|
||||||
VirtualBox.expects(:version).returns(version)
|
VirtualBox.expects(:version).returns(version)
|
||||||
Vagrant::Environment.check_virtualbox!
|
Vagrant::Environment.check_virtualbox!
|
||||||
|
|
Loading…
Reference in New Issue