Sha256: 926514274d3f7e0d4172ca9cae0c47220605962522689aef8819175cc6228201

Contents?: true

Size: 414 Bytes

Versions: 3

Compression:

Stored size: 414 Bytes

Contents

require "spec_helper"

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

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