Sha256: fd4c5ff425e602d91c230b07330bc3d9925849b7d9f9c4b3ae477a9f7166a395

Contents?: true

Size: 472 Bytes

Versions: 9

Compression:

Stored size: 472 Bytes

Contents

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

describe 'Slicehost.get_flavors' do
  describe 'success' do

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

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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