错误运行质问? `current_code ':未定义的方法`翻译' 为Ruby

2019-06-26 05:36发布

我试图运行的质问,我不断收到一个错误:

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

Answer 1:

安装ruby2ruby 1.2.2。 似乎是在1.2.3的API变化。

刚生成的文档的1.2.2和1.2.3

貌似类方法“翻译”已全切除,虽然文档不反映这一



文章来源: Error running Heckle? `current_code': undefined method `translate' for Ruby2Ruby