require_relative "../helpers" describe BigBench::PostProcessor::Statistics do before(:each) do Dir.chdir File.dirname(__FILE__) Dir.chdir ".." end it "should run and create the following statistics" do BigBench.config.duration = 2.minutes BigBench.config.output = "tests/sample_results_big.ljson" BigBench.benchmark("index page" => "http://localhost:3001"){ get "/" } BigBench.post_process :statistics lambda{ BigBench.post_processors.first.run! }.should_not raise_exception end end