mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
![Paul Thornthwaite](/assets/img/avatar_default.png)
Fog::Compute connection was called outside of the Shindo blocks and failing if rackspace credentials were not present.
17 lines
390 B
Ruby
17 lines
390 B
Ruby
Shindo.tests('Fog::Compute::RackspaceV2 | flavors', ['rackspace']) do
|
|
service = Fog::Compute::RackspaceV2.new
|
|
|
|
tests("success") do
|
|
tests("#all").succeeds do
|
|
service.flavors.all
|
|
end
|
|
|
|
tests("#get").succeeds do
|
|
service.flavors.get(service.flavors.first.id)
|
|
end
|
|
end
|
|
|
|
tests("failure").returns(nil) do
|
|
service.flavors.get('some_random_identity')
|
|
end
|
|
end
|