mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
28 lines
627 B
Ruby
28 lines
627 B
Ruby
require File.dirname(__FILE__) + '/../../spec_helper'
|
|
require File.dirname(__FILE__) + '/../../shared_examples/server_examples'
|
|
|
|
describe 'Fog::Brightbox::Compute::Server' do
|
|
|
|
if Fog.mocking?
|
|
it "needs to have mocks implemented"
|
|
else
|
|
it_should_behave_like "Server"
|
|
end
|
|
|
|
subject {
|
|
@image_id = "img-t4p09" # Ubuntu Maverick 10.10 server
|
|
@server = @servers.new(:image_id => @image_id)
|
|
}
|
|
|
|
before(:each) do
|
|
@servers = Brightbox[:compute].servers
|
|
end
|
|
|
|
after(:each) do
|
|
if @server && !@server.new_record?
|
|
@server.wait_for { ready? }
|
|
@server.destroy.should be_true
|
|
end
|
|
end
|
|
|
|
end
|