Running jasmine with rails 3.1 and coffeescript
I'm trying to setup a rails 3.1 project with coffeescript and jasmine for tests.
I have followed the tutorial by pivotallabs but I'm getting the following error:
开发者_运维技巧Internal Server Error
undefined method `static_root=' for #<Sprockets::Environment:0x00000102128718>
How can I solve this? Manu thanks!
Instead of that, you can follow this pivotal article. It works for me.
Make sure to start guard before to write yours specs.
Are you using the latest Rails and Sprockets gems? This looks like Sprockets issue #172, which was fixed.
精彩评论