From 1b959250a0dd3f5e6b862fe27e42baf4dea3732c Mon Sep 17 00:00:00 2001 From: hysios hu Date: Tue, 25 Sep 2012 16:22:22 +0800 Subject: [PATCH] use file to default output dir --- lib/jasmine/headless/template_writer.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jasmine/headless/template_writer.rb b/lib/jasmine/headless/template_writer.rb index 81562a5..487b613 100644 --- a/lib/jasmine/headless/template_writer.rb +++ b/lib/jasmine/headless/template_writer.rb @@ -49,7 +49,8 @@ module Jasmine::Headless end def jhw_reporters - reporters.collect do |reporter, output| + reporters.collect do |reporter, report, output| + output = output || "spec/reports" %{jasmine.getEnv().addReporter(new jasmine.HeadlessReporter.#{reporter}("#{output}"));} end.join("\n") end