6

我正在尝试运行 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)

有什么想法吗?

编辑:我忘记了 gem 版本:

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)
4

1 回答 1

7

安装 ruby​​2ruby 1.2.2。1.2.3 中似乎有一个 API 更改。

刚刚生成了1.2.21.2.3的文档

看起来类方法“翻译”已被完全删除,尽管文档没有反映这一点

于 2009-08-03T11:31:42.437 回答