Sha256: 48f1555cb4e7dc52baecc7be02f6986e075728388c0a6a99d41be7b23530f416

Contents?: true

Size: 410 Bytes

Versions: 31

Compression:

Stored size: 410 Bytes

Contents

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

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

    it "should return proper attributes" do
      actual = Rackspace[: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

31 entries across 31 versions & 1 rubygems

Version Path
fog-0.0.71 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.70 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.69 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.68 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.67 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.66 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.65 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.64 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.63 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.62 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.61 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.60 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.59 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.58 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.57 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.56 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.55 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.54 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.53 spec/rackspace/requests/servers/list_flavors_spec.rb
fog-0.0.52 spec/rackspace/requests/servers/list_flavors_spec.rb