Sha256: bcd3176ba0806b92a6c9b5f41e3de546bce5247e7cb3a1351ab848a38f9411da

Contents?: true

Size: 493 Bytes

Versions: 45

Compression:

Stored size: 493 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  include ServerHelpers

  before do
    config_from_contents(API_CLIENT_CONFIG_CONTENTS)
  end

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

      server.fog_model.wait_for { ready? }

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

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-5.0.0.alpha spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.8.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.7.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.6.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.5.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.5.0.rc1 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.4.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.3.2 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.3.1 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.3.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.2.1 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.2.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.1.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.0.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-4.0.0.rc2 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-3.3.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-3.2.0 spec/unit/brightbox/server/stop_spec.rb
brightbox-cli-3.1.0 spec/unit/brightbox/server/stop_spec.rb