jgallen23/dice-roll — Issue #3: No cookie saved
Author: panosru
Created: 2012-01-26 04:45:27+00:00
State: open

Hi, I tried this module and the tests seems to work fine, but I don't see any cookie to be set as a result the user may get another test on refresh.

Example code:

```js
var ABTest = require('npm::dice-roll');

$(document).ready(function () {
var test = new ABTest("testName", 1);
test.test(50, function() { console.log('I see a red button!'); })
test.otherwise(function() { console.log('I see a blue button!');});
test.run();
});
```

The only cookie that is set when application is running is *connect.sid* (I use firecookie to check out the cookies and modul8 in order to use the example code in client-side)