1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/models/databases/flavors_tests.rb

21 lines
395 B
Ruby
Raw Normal View History

2012-06-23 10:14:44 -04:00
Shindo.tests('Fog::Rackspace::Databases | flavors', ['rackspace']) do
pending if Fog.mocking?
service = Fog::Rackspace::Databases.new
tests("success") do
tests("#all").succeeds do
service.flavors.all
end
tests("#get").succeeds do
service.flavors.get(1)
end
end
tests("failure").returns(nil) do
service.flavors.get('some_random_identity')
end
end