Sha256: 1b401262a09a31dcb0a0ff4f7a402c1c4f579a5150cb0b7e22468d535179fff0

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

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

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

  include RequestLogAnalyzerSpecHelper
  
  before(:each) do
    @log_stripper = RequestLogAnalyzer::LogProcessor.new(spec_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 & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.1.2 spec/log_processor_spec.rb
request-log-analyzer-1.1.2 spec/log_processor_spec.rb