spec/unit/rack/logs/config_spec.rb in rack-logs-0.0.2 vs spec/unit/rack/logs/config_spec.rb in rack-logs-0.0.3
- old
+ new
@@ -20,6 +20,16 @@
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