Sha256: 99812c638e016a40b141d7af7b7044d718b19bf34469a0a08f2ae9b00a280666

Contents?: true

Size: 580 Bytes

Versions: 45

Compression:

Stored size: 580 Bytes

Contents

require "spec_helper"

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

  describe "#find(:all)" do
    context "when a Cloud IP exists" do
      before do
        @cip = Brightbox::CloudIP.create
      end

      it "returns a suitable", vcr: true do
        ips = Brightbox::CloudIP.find(:all)
        output = FauxIO.new do
          Brightbox.render_table(ips.sort, :vertical => true)
        end
        expect(output.stdout).to include(@cip.id)
      end

      after do
        @cip.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/cloud_ip/find_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-5.0.0.alpha spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.8.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.7.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.6.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.5.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.5.0.rc1 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.4.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.3.2 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.3.1 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.3.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.2.1 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.2.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.1.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.0.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-4.0.0.rc2 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-3.3.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-3.2.0 spec/unit/brightbox/cloud_ip/find_spec.rb
brightbox-cli-3.1.0 spec/unit/brightbox/cloud_ip/find_spec.rb