Sha256: 2cc3d2e05689422017f30e1f627a9ca651c26e0b559c3f3a59f8595ed84565a6

Contents?: true

Size: 406 Bytes

Versions: 12

Compression:

Stored size: 406 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>#{@htmlSafe(error.stack || error.message || "Stack trace unavailable")}</div>"""
    @el.innerHTML = html

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
teabag-0.4.4 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.3 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.2 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.1 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.4.0 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.6 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.5 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.4 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.3 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.2 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.1 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee
teabag-0.3.0 app/assets/javascripts/teabag/base/reporters/html/failure_view.coffee