Sha256: 62f45afbb39ed7aa14d8ec4a3a12e2086db925008cc104f805b6ed5eb6cfee1c

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

require "spec_helper"

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

  let(:fog_model) do
    double("Fog::Model", id: "res-12345", attributes: { id: "res-12345"})
  end

  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_snapshot/attributes_spec.rb
brightbox-cli-5.0.0.rc2 spec/unit/brightbox/database_snapshot/attributes_spec.rb
brightbox-cli-5.0.0.rc1 spec/unit/brightbox/database_snapshot/attributes_spec.rb