Sha256: a19cdcf64fca3cb76673b17240d47aadc9d8f9cd779e52bedc48e118a6301f66

Contents?: true

Size: 436 Bytes

Versions: 3

Compression:

Stored size: 436 Bytes

Contents

require "spec_helper"

RSpec.describe Brightbox::CloudIP, "#attributes" do
  subject { described_class.new(fog_model) }

  let(:fog_model) do
    double(
      "Fog::Model",
      id: "cip-12345",
      destination_id: nil,
      attributes: model_attributes
    )
  end
  let(:model_attributes) { { id: "cip-12345" } }

  it "returns an IndifferentAccessHash" do
    expect(subject.attributes).to be_a(IndifferentAccessHash)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0 spec/unit/brightbox/cloud_ip/attributes_spec.rb
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/cloud_ip/attributes_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/cloud_ip/attributes_spec.rb