Sha256: 5346bda25703cacc7565ac93169681140bcb20d89a05e20b8c4c40d9bea4c3cd

Contents?: true

Size: 509 Bytes

Versions: 31

Compression:

Stored size: 509 Bytes

Contents

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

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

    it "should return proper attributes" do
      actual = Rackspace[:servers].list_flavors_detail.body
      actual['flavors'].should be_an(Array)
      flavor = actual['flavors'].first
      flavor['disk'].should be_an(Integer)
      flavor['id'].should be_an(Integer)
      flavor['name'].should be_a(String)
      flavor['ram'].should be_an(Integer)
    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_detail_spec.rb
fog-0.0.70 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.69 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.68 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.67 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.66 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.65 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.64 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.63 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.62 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.61 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.60 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.59 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.58 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.57 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.56 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.55 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.54 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.53 spec/rackspace/requests/servers/list_flavors_detail_spec.rb
fog-0.0.52 spec/rackspace/requests/servers/list_flavors_detail_spec.rb