Sha256: 6942bcfdbf7b3348c0b96f5fbd6045a725bf5e56b2a78c60b5c5102c430d9207

Contents?: true

Size: 602 Bytes

Versions: 3

Compression:

Stored size: 602 Bytes

Contents

require "spec_helper"

describe Brightbox::ServerGroup do

  describe "#find(:all)", :broken_1_8 do
    context "when a group exists", :vcr do
      before do
        options = {
          :name => "Test group"
        }
        @group = Brightbox::ServerGroup.create(options)
      end

      it "list server groups" do
        server_groups = Brightbox::ServerGroup.find(:all)
        output = FauxIO.new do
          Brightbox.render_table(server_groups,{})
        end
        expect(output.stdout).to include(@group.id)
      end

      after do
        @group.destroy
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brightbox-cli-1.1.0 spec/unit/brightbox/server_group/find_spec.rb
brightbox-cli-1.0.0 spec/unit/brightbox/server_group/find_spec.rb
brightbox-cli-1.0.0.rc2 spec/unit/brightbox/server_group/find_spec.rb