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

Version Path
teaspoon-1.4.0 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.2.2 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.2.1 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.2.0 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.5 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.4 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.3 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.2 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.1 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.1.0 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.0.2 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.0.1 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee
teaspoon-1.0.0 app/assets/javascripts/teaspoon/reporters/html/failure_view.coffee