Open mattduggan opened 8 years ago
Cool. I wasn't aware of stub
-- I assume that's a newer sprockets feature? In any case, a PR that investigates this and fixes it to work the same as the production manifest would be welcome
@searls I'll see what I can come up with. And yes! stub
was introduced in the newer versions of sprockets.
Using rails v4.2.2, sprockets v3.4.0, sprockets-rails v2.3.3, jasmine-rails v0.12.2
In my
application.js
, I'm requiring a custom build of lodash (2.4.1) for compatibility with underscore/backbone. The app imports widgets, through Bower and bower-rails setup, which require lodash (3). To force the app to use 2.4.1, I'vestub
-bed them out after the firstrequire
.The app site is behaving as expected and not including lodash 3, but Jasmine spec runner is, causing specs to fail. I can verify that it is exclusive to lodash and the
require
call, no other assets are getting included extraneously.