Sha256: 2d11b0181608c533d45b136f00075bf2cd8d49a42bea721d27919d9ae5a58ef1
Contents?: true
Size: 956 Bytes
Versions: 3
Compression:
Stored size: 956 Bytes
Contents
describe Elasticsearch::Embedded do describe '.verbosity' do after { Logging.logger[subject].level = :info } it 'should allow numbers' do expect { subject.verbosity(2) }.to change { Logging.logger[subject].level }.from(Logging::LEVELS['info']).to(Logging::LEVELS['warn']) end it 'should allow level strings' do expect { subject.verbosity('warn') }.to change { Logging.logger[subject].level }.from(Logging::LEVELS['info']).to(Logging::LEVELS['warn']) end it 'should keep level to info on invalid levels' do expect { subject.verbosity('foo') }.to_not change { Logging.logger[subject].level } end end describe '.mute!' do after { Logging.logger[subject].appenders = Logging.appenders.stdout } it 'should remove all appenders' do expect { subject.mute! }.to change { Logging.logger[subject].appenders }.to([]) end end end
Version data entries
3 entries across 3 versions & 1 rubygems