开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜