Sha256: 7e92dbcc8d0965ae22922829b427f6c15be06a4e1502bc7807bdc40940e65520
Contents?: true
Size: 455 Bytes
Versions: 4
Compression:
Stored size: 455 Bytes
Contents
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
4 entries across 4 versions & 1 rubygems