mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
17 lines
472 B
Ruby
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
|