Sha256: e5785e5a9eb7f6290f73da0ff0a325ebe8c7cacd9597eda45a1859cbb666e34e

Contents?: true

Size: 930 Bytes

Versions: 28

Compression:

Stored size: 930 Bytes

Contents

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

describe RequestLogAnalyzer::Aggregator::Summarizer do

  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

28 entries across 28 versions & 2 rubygems

Version Path
wvanbergen-request-log-analyzer-1.2.3 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.4 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.5 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.6 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.7 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.8 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.2.9 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.0 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.1 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.2 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.3 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.4 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.5 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.6 spec/unit/aggregator/summarizer_spec.rb
wvanbergen-request-log-analyzer-1.3.7 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.3.7 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.3.6 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.3.5 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.3.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.3.3 spec/unit/aggregator/summarizer_spec.rb