Sha256: 52761489e966fb6bfa78a88f8491cae1a9377c37c55aa0fe386c63e2aae6fc8a
Contents?: true
Size: 744 Bytes
Versions: 3
Compression:
Stored size: 744 Bytes
Contents
require "spec_helper" require "fog/brightbox/models/compute/server" RSpec.describe Brightbox::Server, "#hostname" do let(:fog_model) { Fog::Brightbox::Compute::Server.new(fog_settings) } let(:server) { described_class.new(fog_model) } context "when hostname is not equal to id" do let(:fog_settings) do { id: "srv-12345", cloud_ips: [], hostname: "server-hostname", image_id: "img-12345", interfaces: [], server_type: "typ-12345" } end it "returns the hostname" do expect(server.attributes[:id]).to eq("srv-12345") expect(server.attributes[:hostname]).to eq("server-hostname") expect(server.hostname).to eq("server-hostname") end end end
Version data entries
3 entries across 3 versions & 1 rubygems