Sha256: 4d8e9f5138ad36bd4e7986e19884974cefbb642ae277a086aa9c2bc5fdb701bd
Contents?: true
Size: 756 Bytes
Versions: 5
Compression:
Stored size: 756 Bytes
Contents
require 'rack/logs/config' describe 'Rack::Logs::Config' do let(:config) { Rack::Logs::Config.new } describe '#log_dir' do it 'defaults to *.log' do expect(config.log_dir).to eq './log' end it 'is configurable' do config.log_dir = './tmp' expect(config.log_dir).to eq './tmp' end end describe '#pattern' do it 'defaults to *.log' do expect(config.pattern).to eq '*.log' end it 'is configurable' do config.pattern = '*.doge' expect(config.pattern).to eq '*.doge' end end describe '#lines' do it 'defaults to 200' do expect(config.lines).to eq 200 end it 'is configurable' do config.lines = 300 expect(config.lines).to eq 300 end end end
Version data entries
5 entries across 5 versions & 1 rubygems