I have a custom sprockets engine and a test to go with it (rspec). The spec does a visit of /assets/application.js and then checks the content. I want to force spockets to compile (or render) the asset at the time of the test and not pull it from tmp/cache or any other place that it may already compiled.
How should I do this? I don’t see anything obvious in the sprockets code that says “ignore the cache”.
Thank you in advance,
Perry
Maybe setting a
null_storeas the cache backend is better than clearing thetmpfolder everytime. try something like this on your test setup (after the application has been initialized):