jasmine / jasmine-gem

Jasmine ruby gem
682 stars 274 forks source link

Fix PathMapper overzealously replacing working directory #246

Closed tdooner closed 9 years ago

tdooner commented 9 years ago

When an asset's path (/app/assets/application.js) shares a substring with the src_dir of an application (/app), the PathMapper removes the src_dir too many times (assetslication.js).

This changes the gsub to a simple sub so that only the first occurrence is modified.

tdooner commented 9 years ago

I'm closing this, but will open a new one that isn't based off our master branch.