Sha256: 499bc6a8fc31672a62d4afd6461389a5f086c702a11e1b2eba7c6fe9d6e6e522

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

RSpec.describe Dryad::Core::Service do
  it "create with default options" do
    service = Dryad::Core::Service.new
    expect(service.type_name).to eq(Dryad::Core::Service::TYPE)
    expect(service.portals).to eq([])
    expect(service.load_balancing).to eq([])
  end

  it "create with options" do
    service = Dryad::Core::Service.new(name: "rails", address: "localhost", group: "staging", priority: 10)
    expect(service.name).to eq("rails")
    expect(service.address).to eq("localhost")
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dryad-0.2.5 dryad-core/spec/dryad/core/service_spec.rb
dryad-0.2.3 dryad-core/spec/dryad/core/service_spec.rb
dryad-0.2.1 dryad-core/spec/dryad/core/service_spec.rb
dryad-0.2.0 dryad-core/spec/dryad/core/service_spec.rb
dryad-0.1.1 dryad-core/spec/dryad/core/service_spec.rb
dryad-0.1.0 dryad-core/spec/dryad/core/service_spec.rb