spec/unit/tracker/frequency_tracker_spec.rb in wvanbergen-request-log-analyzer-1.2.1 vs spec/unit/tracker/frequency_tracker_spec.rb in wvanbergen-request-log-analyzer-1.2.3
- old
+ new
@@ -1,11 +1,9 @@
require File.dirname(__FILE__) + '/../../spec_helper'
describe RequestLogAnalyzer::Tracker::Frequency, 'static category' do
- include RequestLogAnalyzer::Spec::Helper
-
before(:each) do
@tracker = RequestLogAnalyzer::Tracker::Frequency.new(:category => :category)
@tracker.prepare
end
@@ -34,12 +32,10 @@
end
end
describe RequestLogAnalyzer::Tracker::Frequency, 'dynamic category' do
- include RequestLogAnalyzer::Spec::Helper
-
before(:each) do
@categorizer = Proc.new { |request| request[:duration] > 0.2 ? 'slow' : 'fast' }
@tracker = RequestLogAnalyzer::Tracker::Frequency.new(:category => @categorizer)
@tracker.prepare
end
@@ -56,11 +52,9 @@
end
describe RequestLogAnalyzer::Tracker::Frequency, 'reporting' do
-
- include RequestLogAnalyzer::Spec::Helper
before(:each) do
@tracker = RequestLogAnalyzer::Tracker::Frequency.new(:category => :category)
@tracker.prepare
end
\ No newline at end of file