jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Add support for precompiled assets manifest in Sprockets >= 3.0 #520

Closed mankalas closed 7 months ago

mankalas commented 7 years ago

Sprockets 3.0 has changed the way assets can be accessed if the fallback asset pipeline is disabled (Rails config option config.assets.compile is set to false).

In such case scenario, extracting asset information based on Sprockets environment doesn't work, since Rails.application.assets returns nil.

Fortunately, similar information about assets can be obtained from asset manifest, accessible from Rails.application.assets_manifest.

This change makes teaspoon fall back to using the assets manifest if regular asset environment is not available. It seems to work for all the use cases that I tested.

mathieujobin commented 1 year ago

please update your branch with latest master

mathieujobin commented 7 months ago

feel free to reopen when you are ready to resume work on it.