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

Version Path
teabag-0.7.3 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.7.2 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.7.1 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.7.0 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.6.0 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.5 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.4 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.3 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.2 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.1 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.5.0 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.6 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.5 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee