1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/spec/slicehost/requests/get_flavors_spec.rb

17 lines
472 B
Ruby

require File.dirname(__FILE__) + '/../../spec_helper'
describe 'Slicehost.get_flavors' do
describe 'success' do
it "should return proper attributes" do
actual = slicehost.get_flavors.body
actual['flavors'].should be_an(Array)
flavor = actual['flavors'].first
flavor['id'].should be_an(Integer)
flavor['name'].should be_an(String)
flavor['price'].should be_a(Integer)
flavor['ram'].should be_an(Integer)
end
end
end