运行Heckle时出错? `current_code':Ruby2Ruby的未定义方法`translate'

时间:2009-07-17 18:22:03

标签: ruby-on-rails ruby heckle

我正在尝试运行Heckle,并且我一直收到错误:

> spec spec/controllers/my_controller_spec.rb --heckle MyController

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! exception= has a thick skin. There's nothing to heckle.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

(Runs through several mutations...)

/home/developer/.gem/ruby/1.8/gems/heckle-1.4.3/lib/heckle.rb:603:in `current_code': undefined method `translate' for Ruby2Ruby:Class (NoMethodError)

有什么想法吗?

编辑:我忘记了宝石版本:

heckle (1.4.3)
ruby2ruby (1.2.3)
rails (2.3.2, 2.2.2)
rspec (1.2.6)
rspec-rails(1.2.6, 1.1.12)

1 个答案:

答案 0 :(得分:7)

安装ruby2ruby 1.2.2。 1.2.3中似乎有API更改。

刚刚为1.2.21.2.3

生成了文档

看起来类方法'translate'已被完全删除,尽管文档没有反映这个