Sha256: c4f79c96b25642c103edc3dc999377744b2acfa0cc26a22485ec4f3faf9bdd83
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe Sinclair::Configurable do context 'when it is configured' do before do MyConfigurable.configure do |config| config.host 'interstella.art' config.port 5555 end end after do MyConfigurable.reset_config end it 'sets configuration host' do expect(MyConfigurable.config.host) .to eq('interstella.art') end it 'sets configuration port' do expect(MyConfigurable.config.port) .to eq(5555) end context 'when #rest_config is called' do before do MyConfigurable.reset_config end it 'resets configuration host' do expect(MyConfigurable.config.host) .to be_nil end it 'resets configuration port' do expect(MyConfigurable.config.port) .to be_nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sinclair-1.3.1 | spec/integration/readme/sinclair/configurable_spec.rb |