lib/fukuzatsu/formatters/json_index.rb in fukuzatsu-2.1.1 vs lib/fukuzatsu/formatters/json_index.rb in fukuzatsu-2.2.1
- old
+ new
@@ -6,15 +6,16 @@
include Formatters::Base
attr_reader :summaries
- def initialize(summaries)
+ def initialize(summaries, base_output_path)
@summaries = summaries
+ @base_output_path = base_output_path
end
def content
- summaries.map { |summary| Json.new(summary: summary).as_json }.to_json
+ summaries.map { |summary| Json.new(summary: summary, base_output_path: self.base_output_path).as_json }.to_json
end
def filename
"json/results.json"
end