Sha256: 8fae0714aebd61d22b7547bf73c305af67ff3f87783627273c4dc7833a66145d
Contents?: true
Size: 501 Bytes
Versions: 13
Compression:
Stored size: 501 Bytes
Contents
#= require teaspoon/reporters/html/base_view class Teaspoon.Reporters.HTML.FailureView extends Teaspoon.Reporters.BaseView constructor: (@spec) -> super build: -> super("spec") html = """<h1 class="teaspoon-clearfix"><a href="#{@spec.link}">#{@htmlSafe(@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