Permalink
Browse files

Make tests quieter

  • Loading branch information...
1 parent 50ed10c commit 39b1e545e3a5897bd79a956ff5e7f675ea35e239 @grncdr grncdr committed Apr 8, 2012
View
@@ -4,6 +4,7 @@ assert = require 'assert'
# Test server
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
for method in client.METHODS
resource = {}
View
@@ -10,6 +10,7 @@ assert = require 'assert'
describe "An app with @before middleware", ->
stack = ['findResource', 'coerceParams', 'dispatchHandler', 'renderResponse']
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
response_data = word: 'up'
@@ -4,6 +4,7 @@ assert = require 'assert'
describe "Using coercions", ->
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
@resource '/hello/{name}': GET: -> @ok "Hello #{@name}"
@@ -8,6 +8,7 @@ TeapotError = ->
Error.captureStackTrace @, TeapotError
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
@resource '/byNameUnregistered':
GET: -> @error "TeapotError"
@@ -5,6 +5,7 @@ assert = require('assert')
errors = require '../lib/errors'
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
@resource '/frob/{foozle}/{whatsit}':
GET: -> @error "teapot"
@@ -4,6 +4,7 @@ assert = require 'assert'
describe "Passing a string to @before", ->
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
@before @findResource, 'static', "#{__dirname}/static"
@@ -36,6 +36,7 @@ testResources =
echo = -> @ok @req.vars
server = lazorse ->
+ @_stack.shift() # drop logger
@port = 0
resources = {}
resources[tpl] = {GET: echo} for tpl of testResources

0 comments on commit 39b1e54

Please sign in to comment.