Sha256: 5d641248cb67c3aa55d662717c4d460c47acf42840b6726fae5352be1ade66ce
Contents?: true
Size: 681 Bytes
Versions: 13
Compression:
Stored size: 681 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe RequestLogAnalyzer::Filter::Anonymize, 'anonymize request' do include RequestLogAnalyzer::Spec::Helper before(:each) do @filter = RequestLogAnalyzer::Filter::Anonymize.new(testing_format) end it "should anonimize ip" do @filter.filter(request(:ip => '123.123.123.123'))[:ip].should_not eql('123.123.123.123') end it "should anonimize url" do @filter.filter(request(:url => 'https://test.mysite.com/employees'))[:url].should eql('http://example.com/employees') end it "should fuzz durations" do @filter.filter(request(:duration => 100))[:duration].should_not eql(100) end end
Version data entries
13 entries across 13 versions & 2 rubygems