Tip #1 : Sprockets & Jspec
by J.H.
As I am writing an application that heavily relies on javascript, I decided to use JSpec. I always use Sprockets to manage all my files, which is by the way, really well written.
Then I asked myself “How am I going to my js files in JSpec while shrinking them through sprockets” ?
The answer is pretty simple :
<script src="http://localhost:3000/sprockets.js"></script>
<script src="http://localhost:3000/sprockets.js"></script>
Just replace your lines that load your js files in dom.html by this one. Obviously, you need to fire up your rails server to run it.