[rspec-users] Testing Generators

Pau Cor lists at ruby-forum.com
Tue Oct 7 18:24:01 EDT 2008


Scott Taylor wrote:
> Why don't you generate the specs when you generate the code?

That's what I thought I'd have to do. The reason I'm reluctant to do it 
is that either I need to write the real code first (and not tests 
first). Or I need to rerun my generator every time I write a new test 
(or write the code to make the test pass).

It seems awkward, but I guess it isn't avoidable.

Thanks!

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list