cloudhead/vows — Issue #166: strange vows and request interaction
Author: rahuldave
Created: 2011-12-12 23:14:19+00:00
State: open

This is in coffeescript, but the same problem persists on converting to js.

Two problems. If you call this as:

```
vows --spec vows-request-test.coffee
```
it wont even call google.

But if you do this:
```
coffee vows-request-test.coffee
```

it will, but still fail at the assertion claiming its undefined.

These are at
├── request@2.2.9
├── should@0.3.2
└─┬ vows@0.6.0
└── eyes@0.1.7

and node 0.4.8, coffeescript 1.1.2

```coffeescript
request = require('request')
vows = require('vows')
assert = require('assert')

s1=vows.describe("test a call to google")

s1.addBatch
"GET from google" :
topic : () ->
request "http://www.google.com", @callback

'200 OK comes back': (error, res, body) ->
console.log res.statusCode
assert.equal(res.statusCode, 200)

s1.export(module)
```