Sha256: 1df5715a34a1493200aaf86fcaa60a8b2eaea5dd95c862ce67cfa0e7ab712880

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

require "spec_helper"

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

  let(:fog_model) do
    double(
      "Fog::Model",
      id: "res-12345",
      attributes: model_attributes,
      description: "",
      server_group_id: "grp-12345",
      name: "my-policy"
    )
  end
  let(:model_attributes) { { id: "fwp-12345" } }

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

Version data entries

2 entries across 2 versions & 1 rubygems

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