Sha256: e53cb0b0d817da519f58c7c123160616516d7d0d9eb6b024e63532a05506dc4f

Contents?: true

Size: 470 Bytes

Versions: 30

Compression:

Stored size: 470 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

30 entries across 30 versions & 1 rubygems

Version Path
request-log-analyzer-1.13.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.13.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.11 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.10 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.9 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.8 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.7 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.6 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.5 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.4 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.3 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.2 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.12.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.11.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.11.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.10.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.10.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.9.10 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.9.9 spec/unit/controller/log_processor_spec.rb