Sha256: 65a442b71b303e74863a448a591ede051d5e185ef14bba30d6b1004440f1fdd6
Contents?: true
Size: 780 Bytes
Versions: 5
Compression:
Stored size: 780 Bytes
Contents
require 'spec_helper' require 'auto_network/settings' describe AutoNetwork::Settings do subject { Module.new do extend AutoNetwork::Settings end } describe 'default_pool' do it 'returns DEFAULT_POOL if nothing has been set' do expect(subject.default_pool).to eq(AutoNetwork::Settings::DEFAULT_POOL) end it 'raises an error when set to an invalid value' do expect { subject.default_pool=nil }.to raise_error(AutoNetwork::Settings::InvalidSettingErrror) end end describe 'pool_manager' do context 'when unset' do it 'raises an error when accessed through active_pool_manager' do expect { subject.active_pool_manager }.to raise_error(AutoNetwork::Settings::InvalidSettingErrror) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems