 
 it 'should add a custom property line', ->
   TestError = errorEx 'TestError', foo: -> 'bar'
-  err = new TestError('herp derp')
+  err = new TestError 'herp derp'
   testLine = err.stack.toString().split(/[\r\n]+/g)[1]
   testLine.should.equal '    bar'
 
 it 'should allow properties', ->
   TestError = errorEx 'TestError', foo: (v)-> "foo #{v}" if v
-  err = new TestError('herp derp')
+  err = new TestError 'herp derp'
   testLine = err.stack.toString().split(/[\r\n]+/g)[1]
   testLine.substr(0, 3).should.not.equal 'foo'
   err.foo = 'bar'


it 'should create a new error type', ->
  TestError = errorEx 'TestError'
  err = new TestError('herp derp')
  err.should.be.instanceOf TestError
  err.should.be.instanceOf Error
  err.name.should.equal 'TestError'


it 'should create a default error type', ->
  TestError = errorEx()
  err = new TestError 'herp derp'
  err.should.be.instanceOf TestError
  err.should.be.instanceOf Error
  err.name.should.equal Error.name
