Sha256: 76ab67c443e1b7ae26ecc485770143c3e267c9149a02b4d44cd05c8dc9dacf3d

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

require 'spec_helper'

require 'request_log_analyzer/log_processor'

describe RequestLogAnalyzer::LogProcessor, 'stripping log files' do

  before(:each) do
    @log_stripper = RequestLogAnalyzer::LogProcessor.new(testing_format, :strip, {})
  end

  it 'should remove a junk line' do
    @log_stripper.strip_line("junk line\n").should be_empty
  end

  it 'should keep a teaser line intact' do
    @log_stripper.strip_line("processing 1234\n").should be_empty
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
request-log-analyzer-1.13.4 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.13.3 spec/unit/controller/log_processor_spec.rb