Sha256: 8250988c5cac55f63252947bed0521709466a3a76aebe6c5395f8a43861e9090

Contents?: true

Size: 444 Bytes

Versions: 3

Compression:

Stored size: 444 Bytes

Contents

require "spec_helper"

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

  let(:fog_model) do
    double(
      "Fog::Model",
      id: "typ-12345",
      attributes: model_attributes,
      ram: 1_024,
      disk: 10_240
    )
  end
  let(:model_attributes) { { id: "typ-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/type/attributes_spec.rb
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/type/attributes_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/type/attributes_spec.rb