Sha256: d359877f3fce636dca00766332a15ccd9b3f4a68552430e6235f350319690a73

Contents?: true

Size: 974 Bytes

Versions: 11

Compression:

Stored size: 974 Bytes

Contents

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

describe RequestLogAnalyzer::Aggregator::Summarizer do
  
  include RequestLogAnalyzer::Spec::Helper

  before(:each) do
    @summarizer = RequestLogAnalyzer::Aggregator::Summarizer.new(mock_source, :output => mock_output)
    @summarizer.prepare
  end
  
  it "not raise exception when creating a report after aggregating multiple requests" do
    @summarizer.aggregate(request(:data => 'bluh1'))
    @summarizer.aggregate(request(:data => 'bluh2'))    
    
    lambda { @summarizer.report(mock_output) }.should_not raise_error
  end

  it "not raise exception when creating a report after aggregating a single request" do
    @summarizer.aggregate(request(:data => 'bluh1'))
    lambda { @summarizer.report(mock_output) }.should_not raise_error
  end

  it "not raise exception when creating a report after aggregating no requests" do
    lambda { @summarizer.report(mock_output) }.should_not raise_error
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.1.3 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.1.4 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.1.5.1 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.1.6 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.1.7 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.1.5.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.2.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.1.6 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.1.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.1.3 spec/unit/aggregator/summarizer_spec.rb