小编xto*_*xto的帖子

带有rspec的Ruby 1.9.1"无法修改冻结对象"

我刚刚更新到Ruby 1.9.1并几乎所有我的rspec都被打破了,给了我一个"无法修改冻结的对象".甚至来自生成rspec_controller的Rspec示例代码也会失败.

RuntimeError in 'DownloadsController should use DownloadsController'
can't modify frozen object                                                                                                                                                          
/usr/local/lib/ruby19/1.9.1/timeout.rb:44:in `timeout'


Generated by the following code: 

it "should use DownloadsController" do
  controller.should be_an_instance_of(DownloadsController)
end
Run Code Online (Sandbox Code Playgroud)

有人可以帮忙吗?

ruby rspec

5
推荐指数
2
解决办法
2801
查看次数

标签 统计

rspec ×1

ruby ×1