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