Sha256: ba5838d37aca820ebc21bd288604c4e2d85e673c87f2d5bee3150ebbb1111fd7

Contents?: true

Size: 760 Bytes

Versions: 9

Compression:

Stored size: 760 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fog-0.0.40 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.39 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.38 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.37 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.36 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.35 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.34 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.33 spec/slicehost/requests/get_slices_spec.rb
fog-0.0.32 spec/slicehost/requests/get_slices_spec.rb