Sha256: ecdaa308077547b71b0e30416586b3d7b5dcf821edf3292911964ae8c83c4866

Contents?: true

Size: 655 Bytes

Versions: 11

Compression:

Stored size: 655 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  include ServerHelpers

  describe "#destroy" do
    context "when server exists", :vcr do
      it "should work" do
        # FIXME: Spec never actually calls destroy, just checks output of creation!!

        type = Brightbox::Type.find_by_handle "nano"

        options = server_params("wow", type)
        @servers = Brightbox::Server.create_servers 1, options

        output = FauxIO.new do
          Brightbox.render_table(@servers, :vertical => true)
        end
        expect(output.stdout).to include("wow")
        expect(output.stdout).to include("img-12345")
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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