app/assets/javascripts/teaspoon/base/teaspoon.coffee in teaspoon-0.7.9 vs app/assets/javascripts/teaspoon/base/teaspoon.coffee in teaspoon-0.8.0

- old
+ new

@@ -1,15 +1,16 @@ #= require_self #= require teaspoon/base/runner #= require teaspoon/base/fixture +#= require teaspoon/base/hook #= require teaspoon/base/reporters/html #= require teaspoon/base/reporters/console class @Teaspoon @defer: false @slow: 75 - @root: null + @root: window.location.pathname.replace(/\/+(index\.html)?$/, "").replace(/\/[^\/]*$/, "") @started: false @finished: false @Reporters: {} @Date: Date @location: window.location @@ -56,5 +57,13 @@ @getMessages: -> messages = Teaspoon.messages Teaspoon.messages = [] messages + + + +class Teaspoon.Error extends Error + + constructor: (message) -> + @name = "TeaspoonError" + @message = (message || "")