Sha256: 4e46eb14d431cf12e1b35f9f2fc3ab5efce511e39e289d9516a840c8da3f2e02
Contents?: true
Size: 723 Bytes
Versions: 4
Compression:
Stored size: 723 Bytes
Contents
# Generates a hash table for use in Railroader tests class Railroader::Report::Hash < Railroader::Report::Base def generate_report report = { :errors => tracker.errors, :controllers => tracker.controllers, :models => tracker.models, :templates => tracker.templates } [:generic_warnings, :controller_warnings, :model_warnings, :template_warnings].each do |meth| report[meth] = self.send(meth) report[meth].each do |w| w.message = w.format_message w.context = context_for(@app_tree, w).join("\n") end end report[:config] = tracker.config report[:checks_run] = tracker.checks.checks_run report end end
Version data entries
4 entries across 4 versions & 1 rubygems