Sha256: 5a8f73a3124990e8cc26b1cdd75e0c4b692d34c6997dda57defe1bf529e60171

Contents?: true

Size: 433 Bytes

Versions: 28

Compression:

Stored size: 433 Bytes

Contents

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

describe RequestLogAnalyzer::Filter::Base, 'base filter' do

  before(:each) do
    @filter = RequestLogAnalyzer::Filter::Base.new(testing_format)
  end
  
  it "should return everything" do
    @filter.filter(request(:ip => '123.123.123.123'))[:ip].should eql('123.123.123.123')
  end

  it "should return nil on nil request" do
    @filter.filter(nil).should be_nil
  end

end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.2.3 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.4 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.5 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.6 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.7 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.8 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.2.9 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.0 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.1 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.2 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.3 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.4 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.5 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.6 spec/unit/filter/filter_spec.rb
wvanbergen-request-log-analyzer-1.3.7 spec/unit/filter/filter_spec.rb
request-log-analyzer-1.3.7 spec/unit/filter/filter_spec.rb
request-log-analyzer-1.3.6 spec/unit/filter/filter_spec.rb
request-log-analyzer-1.3.5 spec/unit/filter/filter_spec.rb
request-log-analyzer-1.3.4 spec/unit/filter/filter_spec.rb
request-log-analyzer-1.3.3 spec/unit/filter/filter_spec.rb