Sha256: 91274696080765955a6a71f7e0acb983cd2436b735f00ad141e18f64b6d1f26a

Contents?: true

Size: 918 Bytes

Versions: 17

Compression:

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

17 entries across 17 versions & 2 rubygems

Version Path
request-log-analyzer-1.8.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.7.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.6.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.6.3 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.6.2 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.6.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.6.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.5.4 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.5.3 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.5.2 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.5.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.5.0 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.4.2 spec/unit/aggregator/summarizer_spec.rb
ngmoco-request-log-analyzer-1.4.2 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.4.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.4.0.1 spec/unit/aggregator/summarizer_spec.rb
request-log-analyzer-1.4.0 spec/unit/aggregator/summarizer_spec.rb