Sha256: 35a2fae5df048369d98feb9e2272bd687f3adb65e95aece0701aac07fcee91e5

Contents?: true

Size: 886 Bytes

Versions: 30

Compression:

Stored size: 886 Bytes

Contents

require '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

30 entries across 30 versions & 1 rubygems

Version Path
request-log-analyzer-1.13.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.13.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.11 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.10 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.9 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.8 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.7 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.6 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.5 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.3 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.2 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.12.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.11.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.11.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.10.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.10.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.9.10 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.9.9 spec/unit/aggregator/summarizer_spec.rb