spec/post_processors/statistics_spec.rb in bigbench-0.0.4 vs spec/post_processors/statistics_spec.rb in bigbench-0.0.5

- old
+ new

@@ -1,11 +1,16 @@ 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 = "spec/tests/sample_results_big.ljson" + 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 \ No newline at end of file