Sha256: 5efffd1ddcd386421842f3ac79da09a3ed9549171ca95d1de8a4ca894a08572a

Contents?: true

Size: 398 Bytes

Versions: 11

Compression:

Stored size: 398 Bytes

Contents

require File.dirname(__FILE__) + '/../../../spec_helper'

describe 'Rackspace::Servers.list_flavors' do
  describe 'success' do

    it "should return proper attributes" do
      actual = servers.list_flavors.body
      actual['flavors'].should be_an(Array)
      flavor = actual['flavors'].first
      flavor['id'].should be_an(Integer)
      flavor['name'].should be_a(String)
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fog-0.0.40 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.39 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.38 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.37 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.36 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.35 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.34 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.33 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.32 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.31 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.30 spec/rackspace/requests/servers/list_flavors_spec.rb