capsela/capsela — comment on commit 420efd91f77fb7410cc8aa5f01385ae7d62cc2c6
File: testing/tests/stages/DispatcherTest.js line 62
By sp:

Ok, I patched both of those tests so they should work for you now.

On 3/9/2012 3:14 AM, Marcello Nuccio wrote:
> I'm using Ubuntu-11.10 with node-0.6.12 compiled from sources. That's what I have done:
>
> git clone git://github.com/capsela/capsela.git
> cd capsela
> npm update
> ln -s .. node_modules/capsela # it fails whitout...
> npm test
>
> I get
>
> ==================== Results ====================
>
> DispatcherTest
> FAIL : basics : test init/getConfig
> AssertionError at DispatcherTest.js line 61
>
> test1 == default
>
> AssertionError at DispatcherTest.js line 61
>
> default == test1
>
> FAIL : basics : test setUp
> AssertionError at DispatcherTest.js line 115
>
> test1 == default
>
> AssertionError at DispatcherTest.js line 115
>
> default == test1
>
>
> FAILED (2 of 242 tests) - 709 ms
>
> Changing lines 61 and 115 to `test.notEqual(exp.indexOf(name), -1)` fixes the problem for me.
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/capsela/capsela/commit/420efd91f77fb7410cc8aa5f01385ae7d62cc2c6#commitcomment-1064644