assaf/zombie — pull request #202 by mintbridge (2011-11-17 21:04:37+00:00)
Title: Basic Auth implementation

Hi,

I've added a working implementation of Basic Auth. You can pass the crendentials in as options eg:

```js
var zombie = require("zombie");
var assert = require("assert");

var options = {
credentials: {
method: 'Basic',
user: 'username',
password: 'password'
}
}
// Load the page from localhost
zombie.visit("http://localhost:3000/", options, function (err, browser, status) {

// Fill email, password and submit form
browser.
fill("email", "zombie@underworld.dead").
fill("password", "eat-the-living").
pressButton("Sign Me Up!", function(err, browser, status) {

// Form submitted, new page loaded.
assert.equal(browser.text("title"), "Welcome To Brains Depot");

})

});
```