Sha256: bbf434d45b6bac4c4f5a85d3f105cc276ff7eef43a6692fab725e26b3be7a44f

Contents?: true

Size: 428 Bytes

Versions: 11

Compression:

Stored size: 428 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  include ServerHelpers

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

      server.fog_model.wait_for { ready? }

      expect { server.shutdown }.not_to raise_error
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
brightbox-cli-2.1.2 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-2.1.1 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-2.1.0 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-2.0.0 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.6.0 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.5.0 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.4.3 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.4.2 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.4.1 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.4.0 spec/unit/brightbox/server/shutdown_spec.rb
brightbox-cli-1.3.0 spec/unit/brightbox/server/shutdown_spec.rb