Sha256: e8c754800b8ecbda700f347eb27d7f6733a02164bfd08c8a180bd25719c2128e
Contents?: true
Size: 431 Bytes
Versions: 17
Compression:
Stored size: 431 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
17 entries across 17 versions & 2 rubygems