Sha256: c3efa4ab4a9597ca0bf2e133caa738551f3e6ae08ec1f70dd2ba6a1902cb6655
Contents?: true
Size: 438 Bytes
Versions: 13
Compression:
Stored size: 438 Bytes
Contents
class Teabag.Reporters.HTML.FailureView extends Teabag.Reporters.BaseView constructor: (@spec) -> super build: -> super("spec") html = """<h1 class="teabag-clearfix"><a href="#{@spec.link}">#{@spec.fullDescription}</a></h1>""" for error in @spec.errors() html += """<div><strong>#{@htmlSafe(error.message)}</strong><br/>#{@htmlSafe(error.stack || "Stack trace unavailable")}</div>""" @el.innerHTML = html
Version data entries
13 entries across 13 versions & 1 rubygems