【问题标题】:Error running Heckle? `current_code': undefined method `translate' for Ruby2Ruby运行 Heckle 时出错? `current_code':Ruby2Ruby 的未定义方法 `translate'
【发布时间】:2009-07-17 18:22:03
【问题描述】:

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

【问题讨论】:

  • 对于那些想知道这是否似曾相识的人,1.4.2 版处理了 ruby​​2ruby 的另一个变化。
  • 显然它移动了:rubyforge.org/tracker/…

标签: ruby-on-rails ruby heckle


【解决方案1】:

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

刚刚为1.2.21.2.3 生成了文档

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多