lib/pact/provider/help/content.rb in pact-1.43.0 vs lib/pact/provider/help/content.rb in pact-1.43.1

- old
+ new

@@ -3,21 +3,21 @@ module Pact module Provider module Help class Content - def initialize pact_jsons - @pact_jsons = pact_jsons + def initialize pact_sources + @pact_sources = pact_sources end def text help_text + "\n\n" + pact_diffs end private - attr_reader :pact_jsons + attr_reader :pact_sources def help_text temp_dir = Pact.configuration.tmp_dir log_path = Pact.configuration.log_path ERB.new(template_string).result(binding) @@ -26,10 +26,10 @@ def template_string File.read(File.expand_path( '../../../templates/help.erb', __FILE__)) end def pact_diffs - pact_jsons.collect do | pact_json | + pact_sources.collect do | pact_json | PactDiff.call(pact_json) end.compact.join("\n") end end end