1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/ibm/models/compute/locations_tests.rb
2012-03-20 23:40:18 -04:00

18 lines
424 B
Ruby

Shindo.tests('Fog::Compute[:ibm] | locations', ['ibm']) do
tests('success') do
@location_id = '41'
tests('Fog::Compute[:ibm].locations') do
returns(true) { Fog::Compute[:ibm].locations.length > 0 }
end
tests('Fog::Compute[:ibm].locations.get("#{@location_id}")') do
@location = Fog::Compute[:ibm].locations.get(@location_id)
returns(@location_id) { @location.id }
end
end
end