jasmine / jasmine-gem

Jasmine ruby gem
681 stars 275 forks source link

Fix PathMapper overzealously replacing working directory #248

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.