开发者

Running jasmine with rails 3.1 and coffeescript

开发者 https://www.devze.com 2023-04-02 01:39 出处:网络
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:

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

精彩评论

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