Sha256: 2cbfadb27324ac3eb612bb3ecf2be121ad28fefd2601fcac425b7fd7047b73f7
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
require "spec_helper" RSpec.describe Brightbox::DetailedServer, "#attributes" do subject { described_class.new(fog_model) } let(:fog_model) do double( "Fog::Model", id: "srv-12345", attributes: model_attributes, cloud_ips: [], created_at: Time.parse("2025-01-01T12:00:00Z"), created_on: "2025-01-01", hostname: "srv-12345.gb1.brightbox.com", image_id: "img-12345", interfaces: [], locked?: false, type: "typ-12345", state: "active", server_type: "typ-12345", zone: { id: "zon-12345", handle: "gb1-a" } ) end let(:model_attributes) { { id: "srv-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/detailed_server/attributes_spec.rb |
brightbox-cli-5.0.0.rc1 | spec/unit/brightbox/detailed_server/attributes_spec.rb |