busterjs/ramp-resources — pull request #2 by tenbits (2012-12-12 01:56:14+00:00)
Title: [fix] normalize path on windows

Hi, had small issue about adding resources to my tests.
OS: Windows 7
Reproduce:

Add script - %project%/test/letters/a/a.small.js

Add resource template to buster.js: "test/**/*.js"

While testing, embed script tag referencing to that script %contextPath%/test/letters/a/a.small.js, and you receive - 404

That is due to path normalization on node.js under windows [backslashes], ResourceSet will contain:
"%contextPath%/test/letters\\a\\a.small.js". So that resource would be not matched by the virtualization.

Hier is quick, and also dirty fix of that problem - but hope, it will be helpful. Thanks for busterjs - great job.