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/requests/servers/get_flavor_details_tests.rb
2010-05-21 14:43:29 -07:00

16 lines
416 B
Ruby

Shindo.tests('Rackspace::Servers#get_flavor_details', 'rackspace') do
tests('success') do
tests('#get_flavor_details(1)').formats(Rackspace::Servers::Formats::FLAVOR) do
Rackspace[:servers].get_flavor_details(1).body['flavor']
end
end
tests('failure') do
tests('#get_flavor_details(0)').raises(Excon::Errors::NotFound) do
Rackspace[:servers].get_flavor_details(0)
end
end
end