lefnire/habitrpg — pull request #412 by toebu (2013-02-17 17:00:13+00:00)
Title: Fixing the dailies casper tests (almost). Found out that the main problem...

why most tests aren't working: the derby app seems to need some time after a click/action before the model is updated. This means sometime the user object was completely empty. I've introduced a short wait before retrieving the model that fixes this problem.

The cron test dailies.casper.coffee still doesn't work, but I think that there's an actual problem there, not just a faulty test.

I'm slowly starting to get a hang of these tests. I will work on the other test files in the next days, but you can already merge and use this if you want.

Refs #122