Sha256: c2566e96ab0f1b84ab799fe3b0142da0699b64413410a6e5aabcd24f2a422ffd

Contents?: true

Size: 502 Bytes

Versions: 17

Compression:

Stored size: 502 Bytes

Contents

require File.dirname(__FILE__) + '/../../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

17 entries across 17 versions & 2 rubygems

Version Path
request-log-analyzer-1.8.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.7.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.6.4 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.6.3 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.6.2 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.6.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.6.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.5.4 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.5.3 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.5.2 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.5.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.5.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.4.2 spec/unit/controller/log_processor_spec.rb
ngmoco-request-log-analyzer-1.4.2 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.4.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.4.0.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.4.0 spec/unit/controller/log_processor_spec.rb