Sha256: d3ff6337ff22ead43576873da22cea7e9481edb96084f52c1f2af8d949d7c4b1

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

#= require angular-scenario-1.0.5
#= require teabag/base/teabag
#= require teabag/angular/reporters/console
#= require teabag/angular/reporters/html

class Teabag.Runner extends Teabag.Runner

  setup: ->
    new (@getReporter())(this)
    angular.scenario.setUpAndRun(scenario_output: "teabag,html")



class Teabag.Spec

  constructor: (@spec) ->
    @fullDescription = "#{@spec.fullDefinitionName}: #{@spec.name}"
    @description = @spec.name
    @link = "#"
    #@link = "?grep=#{encodeURIComponent(@fullDescription)}"
    @parent = new Teabag.Suite(@spec)
    @suiteName = @parent.fullDescription
    @viewId = @spec.id
    @pending = false


  getParents: ->
    [@parent]


  errors: ->
    return [] unless @spec.steps
    for step in @spec.steps
      continue if step.status == "success"
      {message: step.error, stack: [step.line]}


  result: ->
    status = "failed"
    status = "passed" if @spec.status == "success"
    status: status
    skipped: false



class Teabag.Suite

  constructor: (@suite) ->
    @fullDescription = @suite.fullDefinitionName
    @description = @suite.fullDefinitionName
    @link = "#"
    @parent = {root: true}
    @viewId = null

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
teabag-0.7.3 app/assets/javascripts/teabag/angular.coffee
teabag-0.7.2 app/assets/javascripts/teabag/angular.coffee
teabag-0.7.1 app/assets/javascripts/teabag/angular.coffee
teabag-0.7.0 app/assets/javascripts/teabag/angular.coffee