Sha256: e25e58215cadfd9bebb11cb2dd38e64657984813b08f6552c6035257cbda5afb

Contents?: true

Size: 491 Bytes

Versions: 30

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe Sinclair::EnvSettable do
  describe 'readme' do
    let(:client) { ServiceClient.default }
    let(:query) do
      /#<ServiceClient:[^ ]* @username="my-login", @password=nil, @port=80, @hostname="host.com">/
    end

    before do
      ENV['SERVICE_USERNAME'] = 'my-login'
      ENV['SERVICE_HOSTNAME'] = 'host.com'
    end

    it 'sets defaults values' do
      expect(client.inspect.to_s).to match(query)
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
sinclair-2.1.1 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-2.1.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-2.0.1 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-2.0.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.16.3 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.16.2 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.16.1 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.16.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.15.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.14.2 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.14.1 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.14.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.13.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.12.1 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.12.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.11.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.10.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.9.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.8.0 spec/integration/readme/sinclair/env_settable_spec.rb
sinclair-1.7.0 spec/integration/readme/sinclair/env_settable_spec.rb