Sha256: 43f598592164134f4aa541ce2319f3f6a3e9a5cee0eaf0a5af5e53e3551bbd4e

Contents?: true

Size: 517 Bytes

Versions: 3

Compression:

Stored size: 517 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  include ServerHelpers

  describe "#start", :vcr, :broken_1_8 do
    it "should work" do
      type = Brightbox::Type.find_by_handle "nano"
      options = server_params("rspec_server_start",type)
      server = (Brightbox::Server.create_servers 1, options).first

      server.fog_model.wait_for { ready? }

      lambda {
        server.stop
        server.fog_model.wait_for { ! ready? }

        server.start
      }.should_not raise_error
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brightbox-cli-1.1.0 spec/unit/brightbox/server/start_spec.rb
brightbox-cli-1.0.0 spec/unit/brightbox/server/start_spec.rb
brightbox-cli-1.0.0.rc2 spec/unit/brightbox/server/start_spec.rb