Tag: heckle

运行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) 有什么想法吗? 编辑 :我忘记了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)

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

ruby是否允许您将警告视为错误? 我想这样做的一个原因是确保如果heckle删除一行代码意味着发出警告,我可以选择确保突变体被杀死。