Sha256: 47b2013232833b86b5fc0c074fc5ab700ef595511f043dc0ab4d1668feaef2f2

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Roqua::Healthy::Client do
  context 'fully configured client' do
    subject { Roqua::Healthy::Client.new(a19_endpoint: 'http://a19_endpoint.dev') }

    it { expect(subject.a19_endpoint).to eq 'http://a19_endpoint.dev' }
  end

  context 'unconfigured client' do
    subject { Roqua::Healthy::Client.new }

    it 'defaults to system wide config' do
      expect(subject.a19_endpoint).to eq Roqua::Healthy.a19_endpoint
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roqua-healthy-1.4.3 spec/unit/client_spec.rb
roqua-healthy-1.4.2 spec/unit/client_spec.rb