 
   build: ->
     classes = ["spec"]
-    classes.push("state-pending") if @pending()
+    classes.push("state-pending") if @spec.pending
     super(classes.join(" "))
     @el.innerHTML = """<a href="#{@link()}">#{@description()}</a>"""
     @parentView = @buildParent()

    @el.className = classes.join(" ")
    @buildErrors() unless @passed()
    @parentView.updateState?(state)


  pending: ->
    @spec.pending


  parent: ->

  updateStatus: (spec) ->
    result = @resultForSpec(spec)

    if result.skipped || spec.pending
      @updateStat("skipped", @total.skipped += 1)
      return

