views:

417

answers:

2

Hi all,

I'm trying to run Heckle, and I keep getting an error:

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

Any thoughts?

EDIT: I forgot the gem versions:

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)
+5  A: 

Install ruby2ruby 1.2.2. There seems to be an API change in 1.2.3.

Just generated the docs for 1.2.2 and 1.2.3

Looks like the class method 'translate' has been totally removed, although the docs don't reflect this

A: 

so how * does * one do a translate these days?

quinn
Downgrade your ruby2ruby to version 1.2.2, as per the first answer.
Matt Grande