Sha256: 347191b29a1127ed29b8ff5665de49b778cade1352ad435f6cf69737d6b05441

Contents?: true

Size: 452 Bytes

Versions: 3

Compression:

Stored size: 452 Bytes

Contents

require "spec_helper"

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

  let(:fog_model) do
    double(
      "Fog::Model",
      id: "typ-12345",
      attributes: model_attributes,
      ram: 1024,
      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/database_type/attributes_spec.rb
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/database_type/attributes_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/database_type/attributes_spec.rb