1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/vcloud_director/requests/compute/versions_tests.rb
Paul Thornthwaite ec8b940b2c Standardise on collection methods
Done with `rubocop --auto-correct --only CollectionMethods`
2014-05-26 16:22:07 +01:00

13 lines
417 B
Ruby

Shindo.tests('Compute::VcloudDirector | versions requests', ['vclouddirector']) do
@service = Fog::Compute::VcloudDirector.new
tests('#get_supported_versions').formats(VcloudDirector::Compute::Schema::SUPPORTED_VERSIONS_TYPE) do
@versions = @service.get_supported_versions.body
end
tests('API 5.1 is supported').returns(true) do
!!@versions[:VersionInfo].find {|i| i[:Version] == '5.1'}
end
end