spec/post_processors/statistics_spec.rb in bigbench-0.0.3 vs spec/post_processors/statistics_spec.rb in bigbench-0.0.4
- old
+ new
@@ -1,11 +1,12 @@
require_relative "../helpers"
describe BigBench::PostProcessor::Statistics do
it "should run and create the following statistics" do
-
- BigBench.config.output = "spec/tests/result.ljson"
+ BigBench.config.duration = 2.minutes
+ BigBench.config.output = "spec/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
\ No newline at end of file