Sha256: e7b58bfae308955a124615d54b4ea7378781679d661c4ac4b1e9af57cf20ae4c
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
require '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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
request-log-analyzer-1.13.4 | spec/unit/filter/filter_spec.rb |
request-log-analyzer-1.13.3 | spec/unit/filter/filter_spec.rb |