Please take a look at the provided sample project archive.
Unzip it in and open in IDE (JsTestDriver plugin should be installed).
Right-click my.jstd file and select Run. You'll be asked to start a local server and capture a browser. After doing this run my.jstd file one more time.
See screenshot of successful test run.
If you need better integration with rails, please provide more info about your tests. A little sample test project would be great.