mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
384 B
Ruby
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
|