[Rspec-devel] test2rspec based on RubyToRuby/ParseTree/RubyInline

David Chelimsky dchelimsky at gmail.com
Wed Jun 7 18:30:43 EDT 2006


On 6/7/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:
> Hi there,
>
> The current test2rspec is based on pattern matching and it's very flaky.
>
> I have experimented with a new translator based on RubyToRuby:
>
> RubyToRuby (http://blog.zenspider.com/archives/2005/02/rubytoruby.html
> and a successor - http://dark.fhtr.org/ruby2ruby.rb)
> ParseTree - used by RubyToRuby (http://rubyforge.org/projects/parsetree/)
> RubyInline - used by ParseTree (http://rubyforge.org/projects/rubyinline/)
>
> All of this is MIT licenced (except RubyToRuby which doesn't appear to
> have a licence - I suppose it's in the public domain)
>
> I'm not 100% done yet, but it's looking promising.
>
> RubyInline won't work on windows (afaik), so that's a drawback, but on
> the flip side I think
> that basing the translator on this stuff will result in much better
> translations.
> And they only have to be done once anyway.
>
> Any objections if I check that in tomorrow and replace the old translator?

No problem as long as you buy me a mac laptop first ;)


More information about the Rspec-devel mailing list