Sha256: 5bbb028e5e7a325cd5516871cdf2f9b9f0afaf65a5e51e48e39869f67862dcd6

Contents?: true

Size: 732 Bytes

Versions: 45

Compression:

Stored size: 732 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  before do
    config_from_contents(API_CLIENT_CONFIG_CONTENTS)
  end

  let(:image_id) { "img-12345" }

  describe "#find(:all)" do
    context "when a server exists", vcr: true do
      before do
        options = {
          :image_id => image_id
        }
        @server = Brightbox::Server.create(options)
      end

      it "should print server list" do
        @servers = Brightbox::Server.find(:all)

        output = FauxIO.new do
          Brightbox.render_table(@servers, {})
        end
        expect(output.stdout).to include(@server.id)
      end

      after do
        @server.fog_model.wait_for { ready? }
        @server.destroy
      end
    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/find_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-5.0.0.alpha spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.8.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.7.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.6.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.5.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.5.0.rc1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.4.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.3.2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.3.1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.3.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.2.1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.2.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.1.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.0.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-4.0.0.rc2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-3.3.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-3.2.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-3.1.0 spec/unit/brightbox/server/find_spec.rb