Sha256: 6387b27c2e96382b6924567ef6b0537ece935c71f25b53aad4ea089856108e5d

Contents?: true

Size: 655 Bytes

Versions: 18

Compression:

Stored size: 655 Bytes

Contents

require "spec_helper"

describe Brightbox::Server do
  let(:image_id) { "img-12345" }

  describe "#find(:all)" do
    context "when a server exists", :vcr 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

18 entries across 18 versions & 1 rubygems

Version Path
brightbox-cli-2.1.2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-2.1.1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-2.1.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-2.0.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.6.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.5.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.4.3 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.4.2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.4.1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.4.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.3.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.2.2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.2.1 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.2.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.1.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.0.0 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.0.0.rc2 spec/unit/brightbox/server/find_spec.rb
brightbox-cli-1.0.0.rc1 spec/unit/brightbox/server/find_spec.rb