Sha256: be84dcca69d8a3402656fddfafa4d29474ca771ab829f002030508fe91a968fb

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 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

2 entries across 2 versions & 1 rubygems

Version Path
request-log-analyzer-1.13.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.13.3 spec/unit/aggregator/summarizer_spec.rb