use file to default output dir

This commit is contained in:
hysios hu 2012-09-25 16:22:22 +08:00
parent d3a87a7fc6
commit 1b959250a0

View File

@ -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