Sha256: 3a5788fe8280fce17940f8c33e7c23aa6116e6dfe2fceefb534c820bd7efb84e

Contents?: true

Size: 550 Bytes

Versions: 13

Compression:

Stored size: 550 Bytes

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

require 'request_log_analyzer/log_processor'

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

  include RequestLogAnalyzer::Spec::Helper
  
  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

13 entries across 13 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.1.3 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.1.4 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.1.5.1 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.1.6 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.1.7 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.2.0 spec/unit/controller/log_processor_spec.rb
wvanbergen-request-log-analyzer-1.2.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.2.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.1.3 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.2.0 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.1.6 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.1.5.1 spec/unit/controller/log_processor_spec.rb
request-log-analyzer-1.1.4 spec/unit/controller/log_processor_spec.rb