On Oct 7, 2008, at 6:02 AM, Pau Cor wrote:
Hi,
I have started writing my own generators, and I was wondering if
anyone
had any suggestions for testing them.
I know I could just run the generator in a dummy application; write my
tests; and then copy the tests back into the generator. But that seems
backwards.
Any ideas?
Why don't you generate the specs when you generate the code? Then,
after you've generated the code you tell if the specs are actually
working...
Scott
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users