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_slices_spec.rb

23 lines
760 B
Ruby

require File.dirname(__FILE__) + '/../../spec_helper'
describe 'Slicehost.get_slices' do
describe 'success' do
it "should return proper attributes" do
actual = slicehost.get_slices.body
actual['slices'].should be_an(Array)
slice = actual['slices'].first
# slice['addresses'].should be_a(Array)
# slice['backup_id'].should be_an(Integer)
# slice['bw_in'].should be_an(Integer)
# slice['bw_out'].should be_an(Integer)
# slice['flavor_id'].should be_an(Integer)
# slice['id'].should be_an(Integer)
# slice['image_id'].should be_an(Integer)
# slice['name'].should be_an(String)
# slice['progress'].should be_an(Integer)
# slice['status'].should be_an(String)
end
end
end