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)

何かご意見は?

編集:私は宝石のバージョンを忘れました:

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

ruby2ruby 1.2.2 をインストールします。1.2.3 で API の変更があるようです。

1.2.21.2.3のドキュメントを生成しました

ドキュメントにはこれが反映されていませんが、クラスメソッド「translate」が完全に削除されたようです

于 2009-08-03T11:31:42.437 に答える