标签: heckle

你能问ruby把警告视为错误吗?

ruby是否允许您将警告视为错误?

我想这样做的一个原因是确保如果heckle删除一行代码意味着发出警告,我可以选择确保突变体被杀死.

ruby warnings heckle

15
推荐指数
2
解决办法
2193
查看次数

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

我正在尝试运行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)
Run Code Online (Sandbox Code Playgroud)

有什么想法吗?

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

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)
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails heckle

6
推荐指数
1
解决办法
850
查看次数

标签 统计

heckle ×2

ruby ×2

ruby-on-rails ×1

warnings ×1