mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
348 B
Ruby
17 lines
348 B
Ruby
Shindo.tests('Slicehost#get_flavor', 'slicehost') do
|
|
tests('success') do
|
|
|
|
tests('#get_flavor(1)').formats(Slicehost::Formats::FLAVOR) do
|
|
Slicehost[:slices].get_flavor(1).body
|
|
end
|
|
|
|
end
|
|
|
|
tests('failure') do
|
|
|
|
tests('#get_flavor(0)').raises(Excon::Errors::Forbidden) do
|
|
Slicehost[:slices].get_flavor(0)
|
|
end
|
|
|
|
end
|
|
end
|