Sha256: d8dd63016e9ea0145828f81c5bda42f7a7febc4a7b29297bd434a20b6a5ce422

Contents?: true

Size: 470 Bytes

Versions: 3

Compression:

Stored size: 470 Bytes

Contents

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

3 entries across 3 versions & 1 rubygems

Version Path
roqua-healthy-1.4.1 spec/unit/client_spec.rb
roqua-healthy-1.3.0 spec/unit/client_spec.rb
roqua-healthy-1.2.1 spec/unit/client_spec.rb