 
 module.exports = ->
 
-  this.Before (callback)->
+  @Before (callback)->
     TestSystem ?= require '../support/test_system'
     system = TestSystem
     callback()
 
-  this.Given /^the System is$/, (source, callback) ->
+  @Given /^the System is$/, (source, callback) ->
     try
       system = TestSystem.parse(source)
     catch e


    callback()

  this.Given /^I dress the following JSON document with (.*?):$/, (type, doc, callback) ->
    try
      json = JSON.parse(doc)
      result = system.fetch(type).dress(json)


  this.Then /^it should be a TypeError as:$/, (table, callback) ->
    unless result instanceof Qjs.TypeError
      callback.fail result

    for k, v of table.hashes()[0]
      unless result[k] == v
