Sha256: 3b738b0a060c3e883f7c30544f7f69564358c8997e6098d5ba45b8ccb8d3be06

Contents?: true

Size: 596 Bytes

Versions: 18

Compression:

Stored size: 596 Bytes

Contents

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

describe 'Fog::Rackspace::Compute::Servers' do

  it_should_behave_like "Servers"

  # flavor 1 = 256, image 49 = Ubuntu 10.04 LTS (lucid)
  subject { @server = @servers.new(:flavor_id => 1, :image_id => 49, :name => "fog_#{Time.now.to_i}") }

  before(:each) do
    @servers = Rackspace[:compute].servers
  end

  after(:each) do
    if @server && !@server.new_record?
      @server.wait_for { ready? }
      @server.destroy.should be_true
    end
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fog-0.3.17 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.16 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.15 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.14 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.13 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.12 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.11 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.10 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.9 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.8 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.7 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.6 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.5 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.4 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.3 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.2 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.1 spec/rackspace/models/compute/servers_spec.rb
fog-0.3.0 spec/rackspace/models/compute/servers_spec.rb