LearnBoost / tobi

Tobi: Expressive server-side functional testing with jQuery
408 stars 33 forks source link

Simple tobi usage results in exception #69

Open alolis opened 13 years ago

alolis commented 13 years ago

I am using node version v.0.5.11-pre with tobi 0.1.1 and the following simple sample

tobi = require('tobi');

browser = tobi.createBrowser(80, 'google.com', {external:true});

browser.get('/', function(res, $){  
});

results in exception

node_modules/tobi/lib/cookie/index.js:26
this.name = str.substr(0, str.indexOf('='));

TypeError: Object PREF=ID=f886a9c19ecc3d44:FF=0:TM=1320856926:LM=1320856926:S=Yw911ELXKPXLIKxO;          
expires=Fri, 08-Nov-2013 16:42:06 GMT; path=/; domain=.google.com has no method 'substr'

Any ideas?