Sha256: 9b18c8d3a0e7c0f68883bbcaa093916f41bf38887cb8a4acc595f6fe4afa0e21
Contents?: true
Size: 574 Bytes
Versions: 2
Compression:
Stored size: 574 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::EnvSettable do describe '#yard' do subject(:settable) { MyAppClient } before do ENV['MY_APP_USERNAME'] = 'my_login' ENV['MY_APP_PORT'] = '8080' end after do ENV.delete('MY_APP_USERNAME') ENV.delete('MY_APP_PORT') end it 'retrieves data from env' do expect(settable.username).to eq('my_login') expect(settable.password).to be_nil expect(settable.host).to eq('my-host.com') expect(settable.port).to eq(8080) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinclair-2.1.1 | spec/integration/yard/sinclair/env_settable_spec.rb |
sinclair-2.1.0 | spec/integration/yard/sinclair/env_settable_spec.rb |