1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/google/models/compute/regions_tests.rb
2014-04-17 13:20:09 -07:00

19 lines
384 B
Ruby

Shindo.tests("Fog::Compute[:google] | regions model", ['google']) do
@regions = Fog::Compute[:google].regions
tests('success') do
tests('#all').succeeds do
@regions.all
end
tests('#get').succeeds do
@regions.get @regions.all.first.name
end
end
tests('failure') do
tests('#get').returns(nil) do
@regions.get 'unicorn'
end
end
end