Sha256: 2ce14078f7ad3d1ba4dc069449613c2b224c792cb1da6e0567a15e8e8927a3ab
Contents?: true
Size: 934 Bytes
Versions: 18
Compression:
Stored size: 934 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe 'Slicehost.create_slice' do describe 'success' do after(:each) do eventually(128) do Slicehost[:slices].delete_slice(@slice_id) end end it "should return proper attributes" do # flavor_id 1: 256 ram, image_id 3: Gentoo 2008.0 actual = Slicehost[:slices].create_slice(1, 3, 'fog_create_slice').body actual['addresses'].should be_a(Array) # actual['backup-id'].should be_an(Integer) actual['bw-in'].should be_an(Float) actual['bw-out'].should be_an(Float) actual['flavor-id'].should be_an(Integer) actual['id'].should be_an(Integer) actual['image-id'].should be_an(Integer) actual['name'].should be_an(String) actual['progress'].should be_an(Integer) actual['root-password'].should be_a(String) actual['status'].should be_an(String) end end end
Version data entries
18 entries across 18 versions & 1 rubygems