[rspec-users] Test::Unit to RSpec Converter

aslak hellesoy aslak.hellesoy at gmail.com
Mon Aug 13 03:51:05 EDT 2007


On 8/13/07, David Rice <davidjrice at gmail.com> wrote:
> Hey, just posting in case this is of interest.
>
> I just recently wrote a Rails plugin to convert Rails Test::Unit cases to
> RSpec.
>
> http://www.davidjrice.co.uk/articles/2007/8/12/ruby-on-rails-plugin-test-unit-to-rspec-converter
>
> it's not going to work 100% in every case, but it's really helped me convert
> old tests to the lovely RSpec :)
>

Thanks David,

We used to have one of those too. The first one was similar to yours,
then I wrote one based on ParseTree and Ruby2Ruby which did the
transformation on the syntax tree level. We ditched it because it was
too much work to maintain (it's still part of older releases - around
0.7 IIRC).

In many cases, simple is better :-)

Aslak

> Best,
> Dave
>
>
> ---
> David Rice
> http://www.davidjrice.co.uk
>
>
>
>
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list